1 2 3 4 5 6 7 8 9 10 11 12
|
project.ext.setProperty('buildPluginRepositoryURL', 'http://maven.tmatesoft.com:8080/content/repositories/releases/')
if (!project.hasProperty('mavenProxyRepository.url')) {
setPropertyDefaultValue('mavenCentralRepository.url', 'http://repo1.maven.org/maven2/')
setPropertyDefaultValue('mavenTMateSoftRepository.url', 'http://maven.tmatesoft.com/content/repositories/snapshots')
}
def setPropertyDefaultValue(String name, String value) {
if (!project.hasProperty(name)) {
project.ext.setProperty(name, value)
}
}
|