1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
buildscript {
repositories {
maven { url 'https://repo.spring.io/plugins-release' }
}
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
}
subprojects {
apply plugin: 'groovy'
apply plugin: 'maven'
group = 'org.springframework.build.gradle'
repositories {
maven { url 'https://repo.spring.io/libs-release' }
maven { url 'file://usr/share/maven-repo' }
}
dependencies {
compile gradleApi()
compile localGroovy()
}
}
ext.repoUser = project.properties['REPO_USERNAME']
ext.repoPass = project.properties['REPO_PASSWORD']
gradle.taskGraph.whenReady {taskGraph ->
if (taskGraph.hasTask(':docbook-reference-plugin:artifactoryPublish') &&
(repoUser == null || repoPass == null)) {
logger.warn("WARNING: artifactoryPublish task specified but REPO_USERNAME " +
"and REPO_PASSWORD properties have not been provided. Authorization may fail.")
}
}
task wrapper(type: Wrapper) {
description = 'Generates gradlew[.bat] scripts'
gradleVersion = '1.11'
}
|