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