Skip to content

Commit

Permalink
[#1930] Add snapshot repository for the examples
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DavideD committed Aug 2, 2024
1 parent 97adb04 commit b12ade2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/native-sql-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down
5 changes: 5 additions & 0 deletions examples/session-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit b12ade2

Please sign in to comment.