File tree Expand file tree Collapse file tree 1 file changed +22
-3
lines changed
Expand file tree Collapse file tree 1 file changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ sourceCompatibility = 1.7
1919group = " uk.modl"
2020applicationName = " java-interpreter"
2121archivesBaseName = " java-interpreter"
22- version = " 0.0.3-SNAPSHOT "
22+ version = " 0.0.3"
2323
2424def isSnapshot = version. endsWith(" SNAPSHOT" )
2525
@@ -101,9 +101,28 @@ publishing {
101101 def snapshotsRepoUrl = " $buildDir /repos/snapshots"
102102 url = isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
103103 if (! isSnapshot) {
104+ def stUser
105+ def stPwd
106+
107+ if (project. hasProperty(' sonatypeUsername' )) {
108+ stUser = sonatypeUsername
109+ }
110+ else {
111+ stUser = " notdefined"
112+ logger. warn(" sonatypeUsername not defined. Please update your gradle config file" )
113+ }
114+
115+ if (project. hasProperty(' sonatypePassword' )) {
116+ stPwd = sonatypePassword
117+ }
118+ else {
119+ stPwd = " notdefined"
120+ logger. warn(" sonatypePassword not defined. Please update your gradle config file" )
121+ }
122+
104123 credentials {
105- username sonatypeUsername
106- password sonatypePassword
124+ username stUser
125+ password stPwd
107126 }
108127 }
109128 }
You can’t perform that action at this time.
0 commit comments