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:
@@ -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"))
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
description = "Kotlin Formatter"
|
||||
|
||||
apply { plugin("java") }
|
||||
plugins {
|
||||
java
|
||||
}
|
||||
|
||||
runtimeJar {
|
||||
archiveName = "kotlin-formatter.jar"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user