aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorKamil Doległo <kamilok1965@interia.pl>2020-01-31 00:37:29 +0100
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-01-31 15:27:26 +0100
commite99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944 (patch)
tree7e3eb4f67d36d3b7b6db6aec08c58de2e1b678d3 /build.gradle.kts
parent0073c4c547dafaae5d465d4c410a52fd7fdc818d (diff)
downloaddokka-e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944.tar.gz
dokka-e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944.tar.bz2
dokka-e99be615ce7c2c2b5c3ee5e3f8941c41c1e7a944.zip
Bump Gradle version, migrate to Kotlin DSL, refactor publishing
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts43
1 files changed, 43 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
new file mode 100644
index 00000000..5540184a
--- /dev/null
+++ b/build.gradle.kts
@@ -0,0 +1,43 @@
+import org.jetbrains.configureDistMaven
+import org.jetbrains.configureDokkaVersion
+
+plugins {
+ kotlin("jvm") apply false
+ id("com.jfrog.bintray") apply false
+}
+
+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 {
+ kotlinOptions {
+ freeCompilerArgs += "-Xjsr305=strict"
+ languageVersion = language_version
+ apiVersion = language_version
+ jvmTarget = "1.8"
+ }
+ }
+
+ repositories {
+ jcenter()
+ mavenCentral()
+ mavenLocal()
+ maven(url = "https://dl.bintray.com/jetbrains/markdown/")
+ }
+
+ configureDistMaven()
+}
+
+subprojects {
+ apply {
+ plugin("org.jetbrains.kotlin.jvm")
+ }
+} \ No newline at end of file