Skip to content

Commit e61e170

Browse files
committed
Allow references to staging jars.
1 parent 79a06d3 commit e61e170

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ repositories {
4545
url "https://oss.sonatype.org/content/repositories/snapshots"
4646
}
4747
}
48+
/* Allow staging references for last pre-release testing. */
49+
if (project.properties.containsKey("sonatypeUsername")) {
50+
maven {
51+
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
52+
credentials {
53+
username = project.properties["sonatypeUsername"]
54+
password = project.properties["sonatypePassword"]
55+
}
56+
}
57+
}
4858
}
4959

5060
/*

0 commit comments

Comments
 (0)