Skip to content

Commit 0158a40

Browse files
committed
Apply Nexus statging plugin to root project.
1 parent 9b8efdd commit 0158a40

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

androidutils/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'maven-publish'
33
apply plugin: 'signing'
4-
apply plugin: 'io.codearte.nexus-staging'
54

65
group = "com.uwetrottmann.androidutils"
76
version = "2.3.2-SNAPSHOT"
@@ -32,15 +31,6 @@ dependencies {
3231
implementation "androidx.appcompat:appcompat:1.2.0"
3332
}
3433

35-
nexusStaging {
36-
packageGroup = "com.uwetrottmann"
37-
if (rootProject.hasProperty('SONATYPE_NEXUS_USERNAME')
38-
&& rootProject.hasProperty('SONATYPE_NEXUS_PASSWORD')) {
39-
username = SONATYPE_NEXUS_USERNAME
40-
password = SONATYPE_NEXUS_PASSWORD
41-
}
42-
}
43-
4434
task androidJavadocs(type: Javadoc) {
4535
source = android.sourceSets.main.java.srcDirs
4636
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ buildscript {
1414
}
1515
}
1616

17+
apply plugin: 'io.codearte.nexus-staging'
18+
19+
nexusStaging {
20+
packageGroup = "com.uwetrottmann"
21+
if (rootProject.hasProperty('SONATYPE_NEXUS_USERNAME')
22+
&& rootProject.hasProperty('SONATYPE_NEXUS_PASSWORD')) {
23+
username = SONATYPE_NEXUS_USERNAME
24+
password = SONATYPE_NEXUS_PASSWORD
25+
}
26+
}
27+
1728
apply plugin: 'com.github.ben-manes.versions'
1829

1930
// reject preview releases for dependencyUpdates task

gradle.properties

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
android.useAndroidX=true
2-
3-
# Allow io.codearte.nexus-staging (gradle-nexus-staging-plugin) to be applied to non-root project.
4-
gnsp.disableApplyOnlyOnRootProjectEnforcement=true

0 commit comments

Comments
 (0)