Commit 53ddd73 1 parent 23633be commit 53ddd73 Copy full SHA for 53ddd73
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -105,21 +105,22 @@ subprojects {
105
105
}
106
106
107
107
repositories {
108
- if (System .getenv(" MAVEN_TOKEN" ) != null ) {
108
+ val mavenToken = System .getenv(" MAVEN_TOKEN" )
109
+ if (mavenToken != null && mavenToken.isNotEmpty()) {
109
110
if (System .getenv(" RELEASE_BUILD" )?.toBoolean() == true ) {
110
111
maven {
111
112
url = uri(" https://maven.ithundxr.dev/releases" )
112
113
credentials {
113
114
username = " railways-github"
114
- password = System .getenv( " MAVEN_TOKEN " )
115
+ password = mavenToken
115
116
}
116
117
}
117
118
} else {
118
119
maven {
119
120
url = uri(" https://maven.ithundxr.dev/snapshots" )
120
121
credentials {
121
122
username = " railways-github"
122
- password = System .getenv( " MAVEN_TOKEN " )
123
+ password = mavenToken
123
124
}
124
125
}
125
126
}
You can’t perform that action at this time.
0 commit comments