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:
@@ -4,7 +4,9 @@ import org.gradle.jvm.tasks.Jar
|
||||
|
||||
description = "Annotation Processor wrapper for Kotlin"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
val packedJars by configurations.creating
|
||||
|
||||
|
||||
@@ -2,7 +2,9 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
description = "Kotlin annotations for Android"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
jvmTarget = "1.6"
|
||||
javaHome = rootProject.extra["JDK_16"] as String
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
|
||||
description = "Kotlin scripting support utilities"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
apply { plugin("jps-compatible") }
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(project(":kotlin-stdlib"))
|
||||
|
||||
Reference in New Issue
Block a user