Permalink
Browse files

[build] restructure to avoid deprecation warning

  • Loading branch information...
1 parent 0e98675 commit da4e74ff1e5e05c5510db0083dceeaf21ec0fb8c @ldaley ldaley committed with graemerocher Dec 10, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 build.gradle
View
@@ -205,8 +205,8 @@ subprojects { project ->
project.deployer = repositories.mavenDeployer {
repository(url: url) {
- final username = project.properties["artifactoryPublishUsername"]
- final password = project.properties["artifactoryPublishPassword"]
+ final username = project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : null
+ final password = project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : null
if(username && password) {
org.apache.ivy.util.url.CredentialsStore.INSTANCE.addCredentials("Artifactory Realm", "repo.grails.org", username, password);

0 comments on commit da4e74f

Please sign in to comment.