Skip to content

Commit

Permalink
Fix toolchain.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Oct 28, 2023
1 parent 8f140d3 commit 7f29c3f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ kotlinx-serialization = "1.5.1"
detekt = "1.23.1"
apacheCommonsText = "1.10.0"
caffeine = "3.1.8"
toolchainsResolver = "0.7.0"

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
Expand Down
31 changes: 30 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,36 @@ rootProject.name = "kstreamlined-backend"

pluginManagement {
repositories {
gradlePluginPortal {
content {
includeGroupByRegex("org.gradle.*")
includeGroupByRegex("com.google.cloud.tools.*")
includeGroup("com.netflix.dgs.codegen")
}
}
mavenCentral()
gradlePluginPortal()
}

val toolchainsResolverVersion = file("$rootDir/gradle/libs.versions.toml")
.readLines()
.first { it.contains("toolchainsResolver") }
.substringAfter("=")
.trim()
.removeSurrounding("\"")

plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version toolchainsResolverVersion
}
}

@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
repositories {
mavenCentral()
google()
}
}

plugins {
id("org.gradle.toolchains.foojay-resolver-convention")
}

0 comments on commit 7f29c3f

Please sign in to comment.