File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,13 @@ rootProject.name = "hibernate-models-group"
17
17
dependencyResolutionManagement {
18
18
repositories {
19
19
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
+ }
25
27
}
26
28
}
27
29
// Needed for RC versions of Jakarta Persistence
@@ -32,9 +34,11 @@ dependencyResolutionManagement {
32
34
maven {
33
35
url " https://jakarta.oss.sonatype.org/content/groups/staging/"
34
36
}
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
+ }
38
42
}
39
43
}
40
44
}
You can’t perform that action at this time.
0 commit comments