Skip to content

Commit 4c0d037

Browse files
committed
Precompile the settings script.
1 parent 46b77d7 commit 4c0d037

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
id("org.gradle.toolchains.foojay-resolver-convention")
3+
}
4+
5+
pluginManagement {
6+
repositories {
7+
gradlePluginPortal()
8+
}
9+
}
10+
11+
@Suppress("UnstableApiUsage")
12+
dependencyResolutionManagement {
13+
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
14+
repositories {
15+
mavenCentral()
16+
}
17+
}

gradle/libs.versions.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ detekt = "2.0.0-alpha.0"# https://mvnrepository.com/artifact/dev.detekt/detekt-g
77
dokka = "2.1.0-Beta" # https://mvnrepository.com/artifact/org.jetbrains.dokka/dokka-gradle-plugin
88
kover = "0.9.1" # https://mvnrepository.com/artifact/org.jetbrains.kotlinx.kover/org.jetbrains.kotlinx.kover.gradle.plugin
99
publishing = "0.34.0" # https://mvnrepository.com/artifact/com.vanniktech/gradle-maven-publish-plugin
10+
toolchains = "1.0.0" # https://plugins.gradle.org/plugin/org.gradle.toolchains.foojay-resolver-convention
1011

1112
[libraries]
1213
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
@@ -23,6 +24,7 @@ gradlePluginDep-dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", ve
2324
gradlePluginDep-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
2425
gradlePluginDep-kover = { module = "org.jetbrains.kotlinx:kover-gradle-plugin", version.ref = "kover" }
2526
gradlePluginDep-publishing = { module = "com.vanniktech:gradle-maven-publish-plugin", version.ref = "publishing" }
27+
gradlePluginDep-toolchains = { module = "org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin", version.ref = "toolchains" }
2628

2729
[bundles]
2830
# Bundles all plugins needed in `buildLogic` so they can be imported in bulk.
@@ -33,4 +35,5 @@ gradlePlugins = [
3335
"gradlePluginDep-kotlin",
3436
"gradlePluginDep-kover",
3537
"gradlePluginDep-publishing",
38+
"gradlePluginDep-toolchains",
3639
]

settings.gradle.kts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,13 @@
1-
@file:Suppress("UnstableApiUsage")
2-
31
rootProject.name = "advent-of-code-kotlin"
42
includeBuild("gradle/build-logic")
53
include(":aockt-core", ":aockt-test")
64

75
pluginManagement {
86
repositories {
9-
gradlePluginPortal()
7+
includeBuild("gradle/build-logic")
108
}
119
}
1210

1311
plugins {
14-
// https://plugins.gradle.org/plugin/org.gradle.toolchains.foojay-resolver-convention
15-
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
16-
}
17-
18-
dependencyResolutionManagement {
19-
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
20-
repositories {
21-
mavenCentral()
22-
}
12+
id("conventions.project")
2313
}

0 commit comments

Comments
 (0)