Skip to content

Commit

Permalink
fix: broken plugin variant selection on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Mar 8, 2023
1 parent dc94bc8 commit 5cd6cf3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,22 @@ repositories {
gradlePluginPortal()
}

kotlin {
jvmToolchain(11)
// https://github.com/gradle/gradle/issues/20847
configurations.configureEach {
if (isCanBeResolved) {
attributes {
attribute(
GradlePluginApiVersion.GRADLE_PLUGIN_API_VERSION_ATTRIBUTE,
project.objects.named(GradleVersion.current().version)
)
}
}
}

//kotlin {
// jvmToolchain(11)
//}

dependencies {
implementation(libs.kotlin.bom)
implementation(libs.kotlin.gradlePlugin)
Expand Down

0 comments on commit 5cd6cf3

Please sign in to comment.