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:
@@ -1,8 +1,8 @@
|
||||
description = "Simple Annotation Processor for testing kapt"
|
||||
|
||||
apply {
|
||||
plugin("kotlin")
|
||||
plugin("maven") // only used for installing to mavenLocal()
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
maven // only used for installing to mavenLocal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
description = "Sample Kotlin JSR 223 scripting jar with daemon (out-of-process) compilation and local (in-process) evaluation"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
val compilerClasspath by configurations.creating
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
|
||||
description = "Sample Kotlin JSR 223 scripting jar with local (in-process) compilation and evaluation"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(projectDist(":kotlin-stdlib"))
|
||||
|
||||
@@ -2,7 +2,9 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
description = "Kotlin Mock Runtime for Tests"
|
||||
|
||||
apply { plugin("kotlin") }
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
}
|
||||
|
||||
jvmTarget = "1.6"
|
||||
javaHome = rootProject.extra["JDK_16"] as String
|
||||
|
||||
@@ -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