diff --git a/examples/native-sql-example/build.gradle b/examples/native-sql-example/build.gradle index 2d6cd5b94e..fabdbc7fa6 100644 --- a/examples/native-sql-example/build.gradle +++ b/examples/native-sql-example/build.gradle @@ -7,6 +7,11 @@ buildscript { // Useful for local development, it should be disabled otherwise mavenLocal() } + // Optional: Enables snapshots repository + // Example: ./gradlew build -PenableSonatypeOpenSourceSnapshotsRep + if ( project.hasProperty('enableSonatypeOpenSourceSnapshotsRep') ) { + maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } + } mavenCentral() } } diff --git a/examples/session-example/build.gradle b/examples/session-example/build.gradle index 05e9dcc04a..7cf7fb5f69 100644 --- a/examples/session-example/build.gradle +++ b/examples/session-example/build.gradle @@ -7,6 +7,11 @@ buildscript { // Useful for local development, it should be disabled otherwise mavenLocal() } + // Optional: Enables snapshots repository + // Example: ./gradlew build -PenableSonatypeOpenSourceSnapshotsRep + if ( project.hasProperty('enableSonatypeOpenSourceSnapshotsRep') ) { + maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } + } mavenCentral() } }