Skip to content

Commit 046c6e2

Browse files
committed
kill uploadArchives task
1 parent b659ba6 commit 046c6e2

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

gradle/gradle-mvn-push.gradle

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ android.libraryVariants.all { variant ->
3535
apply plugin: 'maven'
3636
apply plugin: 'signing'
3737

38-
def isSnapshot = version.endsWith('-SNAPSHOT')
3938
def ossrhUsername = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : System.getenv('CI_NEXUS_USERNAME')
4039
def ossrhPassword = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : System.getenv('CI_NEXUS_PASSWORD')
4140

@@ -63,35 +62,6 @@ def pomConfig = {
6362
}
6463

6564

66-
uploadArchives {
67-
repositories.mavenDeployer {
68-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
69-
70-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
71-
authentication(userName: ossrhUsername, password: ossrhPassword)
72-
}
73-
74-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
75-
authentication(userName: ossrhUsername, password: ossrhPassword)
76-
}
77-
78-
def basePom = {
79-
name projName
80-
artifactId = artifact
81-
packaging 'aar'
82-
description projDescription
83-
url gitLink
84-
}
85-
86-
pom.project basePom << pomConfig
87-
}
88-
}
89-
90-
signing {
91-
required { !isSnapshot && gradle.taskGraph.hasTask("uploadArchives") }
92-
sign configurations.archives
93-
}
94-
9565
task androidSourcesJar(type: Jar) {
9666
classifier = 'sources'
9767
from android.sourceSets.main.java.sourceFiles

0 commit comments

Comments
 (0)