Skip to content

Commit 56e1c9b

Browse files
turanskyqwwdfsad
authored andcommitted
Dokka plugin in 'buildSrc'
1 parent dfdd202 commit 56e1c9b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

buildSrc/build.gradle.kts

+16
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
1+
import java.util.*
2+
13
plugins {
24
`kotlin-dsl`
35
}
46

57
repositories {
68
gradlePluginPortal()
9+
maven("https://kotlin.bintray.com/kotlin-eap")
10+
maven("https://kotlin.bintray.com/kotlin-dev")
711
}
812

913
kotlinDslPluginOptions {
1014
experimentalWarning.set(false)
1115
}
16+
17+
val props = Properties().apply {
18+
file("../gradle.properties").inputStream().use { load(it) }
19+
}
20+
21+
fun version(target: String): String =
22+
props.getProperty("${target}_version")
23+
24+
dependencies {
25+
implementation(kotlin("gradle-plugin", version("kotlin")))
26+
implementation("org.jetbrains.dokka:dokka-gradle-plugin:${version("dokka")}")
27+
}

0 commit comments

Comments
 (0)