diff --git a/build.gradle b/build.gradle index 6864913c62..754dc21c97 100644 --- a/build.gradle +++ b/build.gradle @@ -203,8 +203,12 @@ subprojects { subProject -> name = 'jbossDeployer' configuration = configurations.deployerJars pom.project pomConfig - repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/") - snapshotRepository(url: "https://repository.jboss.org/nexus/content/repositories/snapshots") + repository(url: "https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/") { + authentication(userName: repoUsername, password: repoPassword) + } + snapshotRepository(url: "https://repository.jboss.org/nexus/content/repositories/snapshots") { + authentication(userName: repoUsername, password: repoPassword) + } } }