Skip to content

Commit 2f1fbe6

Browse files
marko-bekhtasebersole
authored andcommitted
Make snapshot repositories conditional
1 parent 41bd833 commit 2f1fbe6

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

settings.gradle

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ rootProject.name = "hibernate-models-group"
1717
dependencyResolutionManagement {
1818
repositories {
1919
mavenCentral()
20-
maven {
21-
// temporary - OSSRH snapshot repo for ORM 7.0 snapshot
22-
url "https://oss.sonatype.org/content/repositories/snapshots/"
23-
mavenContent {
24-
snapshotsOnly()
20+
if (rootProject.hasProperty("enableSnapshotRepositories")) {
21+
maven {
22+
// temporary - Maven Central snapshots repo for ORM snapshots
23+
url "https://central.sonatype.com/repository/maven-snapshots/"
24+
mavenContent {
25+
snapshotsOnly()
26+
}
2527
}
2628
}
2729
// Needed for RC versions of Jakarta Persistence
@@ -32,9 +34,11 @@ dependencyResolutionManagement {
3234
maven {
3335
url "https://jakarta.oss.sonatype.org/content/groups/staging/"
3436
}
35-
// Needed for SNAPSHOT versions of Jakarta Persistence (wtf)
36-
maven {
37-
url "https://jakarta.oss.sonatype.org/content/repositories/snapshots/"
37+
if (rootProject.hasProperty("enableSnapshotRepositories")) {
38+
// Needed for SNAPSHOT versions of Jakarta Persistence (wtf)
39+
maven {
40+
url "https://jakarta.oss.sonatype.org/content/repositories/snapshots/"
41+
}
3842
}
3943
}
4044
}

0 commit comments

Comments
 (0)