Skip to content

Commit d02a8a7

Browse files
committed
Moved entirely to maven-publish.
1 parent 495f9cc commit d02a8a7

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

build.gradle

+5-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ plugins {
44
id 'jacoco'
55
id 'idea'
66
id 'application'
7-
id 'maven'
87
id 'maven-publish'
98
id 'signing'
109
id 'pmd'
@@ -156,14 +155,11 @@ publishing {
156155
}
157156
}
158157
}
159-
}
160-
161-
uploadArchives {
162-
repositories.mavenDeployer {
163-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
164-
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
165-
authentication(userName: ossrhUsername, password: ossrhPassword)
166-
}
158+
repositories {
159+
maven {
160+
name = "ossrh"
161+
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
162+
credentials(PasswordCredentials)
167163
}
168164
}
169165
}

0 commit comments

Comments
 (0)