File: build.defaults.gradle

package info (click to toggle)
svnkit 1.8.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,256 kB
  • ctags: 26,264
  • sloc: java: 221,083; ansic: 389; xml: 273; sh: 264; makefile: 47; python: 17; perl: 8
file content (14 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
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)
    }
}