私はその後、私はこのスニペット
allprojects {
repositories {
def repoUrls = [
'https://mynexus:8081/nexus/content/groups/foo',
'https://mynexus:8081/nexus/content/groups/bar',
'https://mynexus:8081/nexus/content/groups/baz'
}
repoUrls.each { String repoUrl ->
maven {
url repoUrl
credentials {
username project.properties['nexus.user']
password project.properties['nexus.password']
}
}
}
}
}
を使用あなたはeasliy custom pluginにスニペットを回すことができると、おそらく
- 使用するようにそれを改善
%GRADLE_USER_HOME%/gradle.properties
nexus.user=somecoolguy
nexus.password=guessme
に次のように置きます暗号化されたパスワード
project.hasProperty('nexus.user')
が偽を返すと失敗する