Skip to content

Commit 81855d5

Browse files
committed
Adds auto publishing to nexus
1 parent cc467b0 commit 81855d5

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

build.gradle

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'java-library'
33
id 'maven-publish'
44
id 'signing'
5+
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
56
}
67

78
group = 'org.cryptimeleon'
@@ -149,15 +150,13 @@ publishing {
149150
}
150151
}
151152
}
153+
}
154+
155+
nexusPublishing {
152156
repositories {
153-
maven {
154-
credentials {
155-
username = System.getenv("OSSRH_USERNAME")
156-
password = System.getenv("OSSRH_TOKEN")
157-
}
158-
name = 'OSSRH'
159-
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
160-
url = version.endsWith('SNAPSHOT') ? '' : releasesRepoUrl
157+
sonatype {
158+
username = System.getenv("OSSRH_USERNAME")
159+
password = System.getenv("OSSRH_TOKEN")
161160
}
162161
}
163162
}

0 commit comments

Comments
 (0)