File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,13 @@ buildscript {
77 }
88}
99
10+ ext {
11+ sonatypeUser = System . env. SONATYPE_USER
12+ sonatypePass = System . env. SONATYPE_PASS
13+ }
14+
1015apply plugin : ' idea'
1116apply plugin : ' maven'
12- apply plugin : ' signing'
1317apply plugin : ' groovy'
1418apply plugin : ' release'
1519
@@ -36,8 +40,11 @@ artifacts {
3640 archives sourcesJar
3741}
3842
39- signing {
40- sign configurations. archives
43+ if (sonatypeUser) {
44+ apply plugin : ' signing'
45+ signing {
46+ sign configurations. archives
47+ }
4148}
4249
4350uploadArchives {
@@ -47,11 +54,11 @@ uploadArchives {
4754
4855
4956 snapshotRepository(url : ' https://oss.sonatype.org/content/repositories/snapshots' ) {
50- authentication(userName : " $S ystem . env . SONATYPE_USER " , password : " $S ystem . env . SONATYPE_PASS " )
57+ authentication(userName : sonatypeUser , password : sonatypePass )
5158 }
5259
5360 repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
54- authentication(userName : " $S ystem . env . SONATYPE_USER " , password : " $S ystem . env . SONATYPE_PASS " )
61+ authentication(userName : sonatypeUser , password : sonatypePass )
5562 }
5663
5764 pom. project {
You can’t perform that action at this time.
0 commit comments