Slackbot
11/30/2022, 6:35 PMChris Lee
11/30/2022, 6:40 PMSomeCat
11/30/2022, 6:41 PMChris Lee
11/30/2022, 6:43 PMSomeCat
11/30/2022, 6:49 PMChris Lee
11/30/2022, 6:51 PMSomeCat
11/30/2022, 6:52 PMSomeCat
11/30/2022, 6:52 PMChris Lee
11/30/2022, 6:53 PMkotlin("jvm") version "1.6.21"
SomeCat
11/30/2022, 6:54 PMstartup failed:build file whatever/build.gradle’: 13: only id(String), alias(Provider), or alias(ProviderConvertible) method calls allowed in plugins {} script block ….. @ line 13, column 5. kotlin(“jvm”) version “1.6.21" ^ 1 error
Chris Lee
11/30/2022, 6:55 PMChris Lee
11/30/2022, 6:55 PMSomeCat
11/30/2022, 6:56 PMChris Lee
11/30/2022, 6:57 PMid("org.jetbrains.kotlin.jvm") version ("1.6.21")
- should work to pull in the Kotlin plugin. What plugin repositories are configured?SomeCat
11/30/2022, 7:00 PMChris Lee
11/30/2022, 7:01 PMSomeCat
11/30/2022, 7:02 PMChris Lee
11/30/2022, 7:02 PMSomeCat
11/30/2022, 7:04 PMSomeCat
11/30/2022, 7:09 PMChris Lee
11/30/2022, 7:09 PMSomeCat
11/30/2022, 7:10 PMChris Lee
11/30/2022, 7:11 PMSomeCat
11/30/2022, 7:14 PMChris Lee
11/30/2022, 7:15 PMChris Lee
11/30/2022, 7:17 PMval copyKotlinClasses = tasks.register<Copy>("copyKotlinClassesToLegacy") {
into("legacyDir")
from(tasks.named("compileKotlin"))
}
tasks.named("assemble") {
dependsOn(copyKotlinClasses)
}
SomeCat
11/30/2022, 7:20 PMJohn Bellini
11/30/2022, 10:26 PM// Kotlin compile
withType<KotlinCompile> {
sourceCompatibility = JavaVersion.VERSION_11.toString()
targetCompatibility = JavaVersion.VERSION_11.toString()
kotlinOptions {
apiVersion = "1.6.21"
languageVersion = "1.6.21"
jvmTarget = JavaVersion.VERSION_11.toString()
freeCompilerArgs = listOf("-Xjsr305=strict")
allWarningsAsErrors = true
}
}