File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ plugins {
10
10
id ' org.hibernate.build.xjc-jakarta'
11
11
}
12
12
13
- repositories {
14
- gradlePluginPortal()
15
- }
16
-
17
13
description = ' Hibernate\' s core ORM functionality'
18
14
19
15
apply from : rootProject. file( ' gradle/published-java-module.gradle' )
Original file line number Diff line number Diff line change @@ -30,13 +30,15 @@ dependencyResolutionManagement {
30
30
url( rootProject. property( " mavenMirror" ) )
31
31
}
32
32
mavenCentral()
33
- // Needed for the RC versions of Jakarta Persistence
34
- maven {
35
- url " https://jakarta.oss.sonatype.org/content/repositories/releases/"
36
- }
37
- // Needed for the SNAPSHOT versions of Jakarta Persistence
38
- maven {
39
- url " https://jakarta.oss.sonatype.org/content/repositories/snapshots/"
33
+ if (System . env[' JPA_PREVIEW' ] != null ) {
34
+ // Needed for the RC versions of Jakarta Persistence
35
+ maven {
36
+ url " https://jakarta.oss.sonatype.org/content/repositories/releases/"
37
+ }
38
+ // Needed for the SNAPSHOT versions of Jakarta Persistence
39
+ maven {
40
+ url " https://jakarta.oss.sonatype.org/content/repositories/snapshots/"
41
+ }
40
42
}
41
43
42
44
// Allow loading additional dependencies from a local path;
You can’t perform that action at this time.
0 commit comments