Slackbot
11/09/2022, 9:00 PMChris Lee
11/09/2022, 9:02 PM--refresh-dependencies
first and think I ended up removing ~/.gradle/caches.Chris Lee
11/09/2022, 9:03 PMMartin
11/09/2022, 9:04 PMChris Lee
11/09/2022, 9:05 PMMartin
11/09/2022, 9:05 PMChris Lee
11/09/2022, 9:05 PMMartin
11/09/2022, 9:06 PMMartin
11/09/2022, 9:12 PMChris Lee
11/09/2022, 9:13 PMplugins {
`kotlin-dsl`
// DO NOT use kotlin("jvm") here as this is a Gradle plugin that will use the embedded Kotlin, pulled in by `kotlin-dsl'
// also: it's redundant to use `java-gradle-plugin` (already pulled in by `kotlin-dsl`
}
Martin
11/09/2022, 9:14 PMplugins {
`embedded-kotlin`
id("java-gradle-plugin")
}
Martin
11/09/2022, 9:15 PMfun String.invoke()
in my classpath 😅Chris Lee
11/09/2022, 9:15 PMkotlin-dsl
does what you need.Chris Lee
11/09/2022, 9:15 PMString.invoke
issue?Martin
11/09/2022, 9:15 PMMartin
11/09/2022, 9:15 PMMartin
11/09/2022, 9:18 PMChris Lee
11/09/2022, 9:18 PMkotlin-dsl
to write Gradle stuff.Martin
11/09/2022, 9:19 PMMartin
11/09/2022, 9:20 PM7.5
Chris Lee
11/09/2022, 9:20 PMkotlin-dsl
isn’t being used to pull in the standard set of things?Chris Lee
11/09/2022, 9:21 PMMartin
11/09/2022, 9:27 PMChris Lee
11/09/2022, 9:30 PMkotlin-dsl
they’re done in a different order:
apply<JavaGradlePluginPlugin>()
apply<KotlinDslBasePlugin>()
apply<PrecompiledScriptPlugins>()
…the middle one is embedded kotlin.Martin
11/09/2022, 9:30 PMMartin
11/09/2022, 9:31 PMMartin
11/09/2022, 9:31 PMChris Lee
11/09/2022, 9:34 PMplugins {
`embedded-kotlin`
`java-gradle-plugin`
}
repositories {
mavenCentral()
}
Chris Lee
11/09/2022, 9:34 PMMartin
11/09/2022, 9:35 PMkotlin-gradle-plugin:1.7.21
is the one that fails to resolveChris Lee
11/09/2022, 9:36 PMMartin
11/09/2022, 9:37 PMplugins {
id("java-gradle-plugin")
`embedded-kotlin`
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21")
}
Chris Lee
11/09/2022, 9:47 PM./gradlew --refresh-dependencies --info | grep https
. Something else must be forcing 1.7.21.Chris Lee
11/09/2022, 9:50 PMbuildscript
perhaps.Martin
11/09/2022, 10:12 PMplugins {
id("java-gradle-plugin")
`embedded-kotlin`
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21")
implementation("org.jetbrains.kotlin:kotlin-allopen:1.7.10")
}
Chris Lee
11/09/2022, 10:22 PM./gradlew test
.Martin
11/09/2022, 10:24 PMMartin
11/09/2022, 10:24 PMError while evaluating property 'paths' of task ':pluginUnderTestMetadata'.
Martin
11/09/2022, 10:24 PMChris Lee
11/09/2022, 10:25 PMMartin
11/09/2022, 10:25 PMMartin
11/09/2022, 10:25 PMChris Lee
11/09/2022, 10:26 PMMartin
11/09/2022, 10:26 PMChris Lee
11/09/2022, 10:26 PM