File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,16 +71,20 @@ publishing {
7171 }
7272
7373 repositories {
74- maven {
75- name = " scijava"
76- url = if (version.toString().endsWith(" SNAPSHOT" )) {
77- uri(" https://maven.scijava.org/content/repositories/snapshots" )
78- } else {
79- uri(" https://maven.scijava.org/content/repositories/releases" )
80- }
81- credentials {
82- username = System .getenv(" MAVEN_USER" )
83- password = System .getenv(" MAVEN_PASS" )
74+ repositories {
75+ maven {
76+ name = " scijava"
77+ val repoUrl = if (version.toString().endsWith(" SNAPSHOT" )) {
78+ uri(" https://maven.scijava.org/content/repositories/snapshots" )
79+ } else {
80+ uri(" https://maven.scijava.org/content/repositories/releases" )
81+ }
82+ println (" Publishing version $version to $repoUrl " )
83+ url = repoUrl
84+ credentials {
85+ username = System .getenv(" MAVEN_USER" )
86+ password = System .getenv(" MAVEN_PASS" )
87+ }
8488 }
8589 }
8690 }
You can’t perform that action at this time.
0 commit comments