From 08599de8e9bb674bbf26599ab51d13ead43f7876 Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Fri, 2 Aug 2024 10:13:43 +0200 Subject: [PATCH] [#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 --- examples/native-sql-example/build.gradle | 5 +++++ examples/session-example/build.gradle | 5 +++++ 2 files changed, 10 insertions(+) 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() } }