Skip to content

Commit f7377a2

Browse files
committed
refactor: move java-spring repo configuration to settings.gradle.kts
1 parent fb4cc8f commit f7377a2

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

java-spring/buildSrc/src/main/kotlin/quickstart-conventions.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ java {
1515
}
1616
}
1717

18-
repositories {
19-
mavenCentral()
20-
}
21-
2218
tasks.withType<Test> {
2319
useJUnitPlatform()
2420
}

java-spring/settings.gradle.kts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
1+
pluginManagement {
2+
repositories {
3+
google {
4+
@Suppress("UnstableApiUsage")
5+
mavenContent {
6+
includeGroupAndSubgroups("androidx")
7+
includeGroupAndSubgroups("com.android")
8+
includeGroupAndSubgroups("com.google")
9+
}
10+
}
11+
mavenCentral()
12+
gradlePluginPortal()
13+
}
14+
}
15+
116
plugins {
217
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
318
}
419

520
rootProject.name = "spring-quickstart-java"
21+
22+
dependencyResolutionManagement {
23+
@Suppress("UnstableApiUsage")
24+
repositories {
25+
google {
26+
mavenContent {
27+
includeGroupAndSubgroups("androidx")
28+
includeGroupAndSubgroups("com.android")
29+
includeGroupAndSubgroups("com.google")
30+
}
31+
}
32+
mavenCentral()
33+
}
34+
}

0 commit comments

Comments
 (0)