Improve tooling model + add Gradle version checking (#1602)

* [gradle-plugin] Add tests for IDE model
* [gradle-plugin] Check Gradle version
* [gradle-plugin] Provide language, api and konan version in the model
* [gradle-plugin] Use String instead of KonanTarget in the IDE model
* [gradle-plugin] Rename Produce -> KonanOutput
* [version] Make KonanVersion an interface to allow passing it to IDE
* [gradle-plugin] Replace KonanOutput with CompilerOutputKind
* [gradle-plugin] Don't override usual jar with a fat one
* [gradle-plugin] Fix IDE model tests
* [gradle-plugin] Add library search paths in IDE model
* [gradle-plugin] Use 4.7 as a required version for the plugin
* [gradle-plugin] "Kotlinfy" the version check
This commit is contained in:
ilmat192
2018-05-23 11:58:47 +07:00
committed by GitHub
parent 74e1783e2b
commit bc65c7175d
15 changed files with 441 additions and 118 deletions
@@ -45,7 +45,7 @@ apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'org.jetbrains.kotlin'
version = KonanVersion.CURRENT.gradlePluginVersion
version = KonanVersion.Companion.CURRENT.toString()
repositories {
mavenCentral()
@@ -76,11 +76,17 @@ dependencies {
}
}
jar {
appendix = "no-shared"
}
shadowJar {
configurations = [project.configurations.bundleDependencies]
classifier = null
}
assemble.dependsOn shadowJar
test {
systemProperty("kotlin.version", buildKotlinVersion)
if (project.hasProperty("konan.home")) {