Skip to content

Commit dea59f7

Browse files
committed
null-check added.
1 parent b20823d commit dea59f7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,13 @@ afterEvaluate {
108108
* JetBrains Spaces Repository (private)
109109
* https://lp.jetbrains.com/space-source-code-management/
110110
*/
111-
maven {
112-
url = System.getenv("JB_SPACE_MAVEN_REPO")
113-
credentials {
114-
username = System.getenv("JB_SPACE_CLIENT_ID")
115-
password = System.getenv("JB_SPACE_CLIENT_SECRET")
111+
if (System.getenv("JB_SPACE_MAVEN_REPO") != null) {
112+
maven {
113+
url = System.getenv("JB_SPACE_MAVEN_REPO")
114+
credentials {
115+
username = System.getenv("JB_SPACE_CLIENT_ID")
116+
password = System.getenv("JB_SPACE_CLIENT_SECRET")
117+
}
116118
}
117119
}
118120
}

0 commit comments

Comments
 (0)