diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-01-31 14:04:42 +0100 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-01-31 15:27:26 +0100 |
commit | 79ec42607f3bc090ef40547a01aabcd1cd55886e (patch) | |
tree | 63f01b2ed1d92e3a3040bd95c27a10d3b53a5f06 /build.gradle.kts | |
parent | d6fab477e89b781c85cf123fa58078deaa15d480 (diff) | |
download | dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.tar.gz dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.tar.bz2 dokka-79ec42607f3bc090ef40547a01aabcd1cd55886e.zip |
Minor fixes, rewritten CrossPlatformExec.kt
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 5540184a..aab928e7 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,23 +1,22 @@ import org.jetbrains.configureDistMaven import org.jetbrains.configureDokkaVersion +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") apply false id("com.jfrog.bintray") apply false } +val dokka_version: String by project + allprojects { configureDokkaVersion() - val dokka_version: String by this - if (this == rootProject) { - println("Publication version: $dokka_version") - } group = "org.jetbrains.dokka" version = dokka_version val language_version: String by project - tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all { + tasks.withType(KotlinCompile::class).all { kotlinOptions { freeCompilerArgs += "-Xjsr305=strict" languageVersion = language_version @@ -40,4 +39,6 @@ subprojects { apply { plugin("org.jetbrains.kotlin.jvm") } -}
\ No newline at end of file +} + +println("Publication version: $dokka_version")
\ No newline at end of file |