Skip to content

Commit ac06f3b

Browse files
turanskyrecheej
authored andcommitted
Kotlin DSL. Add version extension (Kotlin#1939)
1 parent de8eda5 commit ac06f3b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

buildSrc/build.gradle.kts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
gradlePluginPortal()
7+
}
8+
9+
kotlinDslPluginOptions {
10+
experimentalWarning.set(false)
11+
}

buildSrc/src/main/kotlin/Projects.kt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import org.gradle.api.Project
2+
3+
fun Project.version(target: String): String =
4+
property("${target}_version") as String

0 commit comments

Comments
 (0)