Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed for build error

  • Loading branch information...
commit 657e2f55b41af264207f0d698fc782bb20bba2d4 1 parent 42116d1
@graemerocher graemerocher authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 build.gradle
View
9 build.gradle
@@ -156,10 +156,13 @@ subprojects { project ->
repositories.mavenDeployer {
repository(url: url) {
- final username = project.getProperty("artifactoryPublishUsername")
- final password = project.getProperty("artifactoryPublishPassword")
+ final username = project.properties["artifactoryPublishUsername"]
+ final password = project.properties["artifactoryPublishPassword"]
+
+ if(username && password) {
+ org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Artifactory Realm", "repo.grails.org", username, password);
+ }
- org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Artifactory Realm", "repo.grails.org", username, password);
authentication(userName: username, password: password)
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.