Use Plugins DSL in Kotlin Gradle scripts

When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
This commit is contained in:
Alexey Tsvetkov
2018-03-24 22:55:55 +03:00
parent 19a13b47ff
commit 8a82c1618c
102 changed files with 381 additions and 197 deletions
@@ -3,7 +3,9 @@ import org.gradle.jvm.tasks.Jar
description = "Kotlin Android Extensions Compiler"
apply { plugin("kotlin") }
plugins {
kotlin("jvm")
}
dependencies {
compileOnly(project(":compiler:util"))
+3 -1
View File
@@ -1,7 +1,9 @@
description = "Kotlin Android Lint"
apply { plugin("java-base") }
plugins {
`java-base`
}
val projectsToShadow = listOf(
":plugins:lint",
@@ -4,10 +4,9 @@ description = "Kotlin compiler client embeddable"
plugins {
maven
kotlin("jvm")
}
apply { plugin("kotlin") }
val jarContents by configurations.creating
val testRuntimeCompilerJar by configurations.creating
val testStdlibJar by configurations.creating
+3 -1
View File
@@ -1,7 +1,9 @@
description = "Kotlin Formatter"
apply { plugin("java") }
plugins {
java
}
runtimeJar {
archiveName = "kotlin-formatter.jar"
+3 -1
View File
@@ -2,7 +2,9 @@ import java.util.Properties
description = "Kotlin IDE Lazy Resolver"
apply { plugin("java") }
plugins {
java
}
val versions by configurations.creating
val versionFilePath = "$rootDir/dependencies/dependencies.properties"