Skip to content

Commit

Permalink
Kotlin DSL. Add version extension (#1939)
Browse files Browse the repository at this point in the history
  • Loading branch information
turansky authored Apr 24, 2020
1 parent 70a7487 commit 64d23a0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
`kotlin-dsl`
}

repositories {
gradlePluginPortal()
}

kotlinDslPluginOptions {
experimentalWarning.set(false)
}
4 changes: 4 additions & 0 deletions buildSrc/src/main/kotlin/Projects.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import org.gradle.api.Project

fun Project.version(target: String): String =
property("${target}_version") as String

0 comments on commit 64d23a0

Please # to comment.