move staging plugin block our of subprojects namespace
@@ -127,6 +127,20 @@ allprojects {
}
}
+
+nexusPublishing {
+ repositories {
+
+ sonatype {
+
+// nexusUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
+// snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
+ username = property('ossrhUsername')
+ password = property('ossrhPassword')
+ }
+ }
+}
+
subprojects {
apply plugin: 'java'
@@ -144,18 +158,7 @@ subprojects {
}
}
- nexusPublishing {
- repositories {
- mavenCentral {
-
- nexusUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2")
- snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
- username = property('ossrhUsername')
- password = property('ossrhPassword')
- }
- }
- }
dependencies {
