Skip to content

Commit 3808597

Browse files
committed
Signing and use nexus-staging plugin
1 parent 3db77da commit 3808597

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ plugins {
1919
id 'io.codearte.nexus-staging' version '0.22.0' //can only be applied to root project
2020
}
2121

22+
nexusStaging {
23+
username = "$System.env.SONATYPE_NEXUS_USERNAME"
24+
password = "$System.env.SONATYPE_NEXUS_PASSWORD"
25+
}
2226

2327
allprojects {
2428
group 'com.github.tschuchortdev'
@@ -47,6 +51,7 @@ allprojects {
4751
apply plugin: 'kotlin'
4852
apply plugin: 'java'
4953
apply plugin: 'idea'
54+
apply plugin: 'signing'
5055
apply plugin: 'maven-publish'
5156

5257
if (JavaVersion.current().isJava8Compatible()) {
@@ -68,6 +73,7 @@ subprojects {
6873
archiveClassifier = 'javadoc'
6974
from javadoc.destinationDir
7075
}
76+
7177
publishing {
7278
publications {
7379
mavenJava(MavenPublication) {
@@ -117,6 +123,10 @@ subprojects {
117123
}
118124
}
119125

126+
signing {
127+
sign publishing.publications.mavenJava
128+
}
129+
120130
dependencies {
121131
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
122132

0 commit comments

Comments
 (0)