Skip to content

Commit 2f0e2b2

Browse files
tsegismontgbadner
authored andcommitted
Added enableSonatypeOpenSourceSnapshotsRep property
Vert.x Snapshots are published to the Sonatype's new infra for OSS projects. This allow to run tests with, for example '-PenableSonatypeOpenSourceSnapshotsRep -PvertxVersion=4.1.0-SNAPSHOT'
1 parent 380a4e3 commit 2f0e2b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ subprojects {
122122
// Only enable these for local development, never push it:
123123
// mavenLocal()
124124
// jcenter()
125-
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
125+
// Example: ./gradlew build -PenableSonatypeOpenSourceSnapshotsRep
126+
if ( project.hasProperty('enableSonatypeOpenSourceSnapshotsRep') ) {
127+
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
128+
}
126129
mavenCentral()
127130

128131
// Example: ./gradlew build -PenableJBossSnapshotsRep

0 commit comments

Comments
 (0)