Skip to content

Commit ffc69d7

Browse files
committed
[hibernate#1930] Add snapshot repository for the examples
We didn't include it in the past because we wanted to keep the examples simpler. But, we need to be able to test the examples with the snapshots and it's disabled on the `main` branch as default
1 parent d8f7615 commit ffc69d7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

examples/native-sql-example/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ buildscript {
77
// Useful for local development, it should be disabled otherwise
88
mavenLocal()
99
}
10+
// Optional: Enables snapshots repository
11+
// Example: ./gradlew build -PenableSonatypeOpenSourceSnapshotsRep
12+
if ( project.hasProperty('enableSonatypeOpenSourceSnapshotsRep') ) {
13+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
14+
}
1015
mavenCentral()
1116
}
1217
}

examples/session-example/build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ buildscript {
77
// Useful for local development, it should be disabled otherwise
88
mavenLocal()
99
}
10+
// Optional: Enables snapshots repository
11+
// Example: ./gradlew build -PenableSonatypeOpenSourceSnapshotsRep
12+
if ( project.hasProperty('enableSonatypeOpenSourceSnapshotsRep') ) {
13+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
14+
}
1015
mavenCentral()
1116
}
1217
}

0 commit comments

Comments
 (0)