-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (27 loc) · 893 Bytes
/
build.gradle
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
plugins {
id 'io.spring.dependency-management' version '1.0.6.RELEASE' apply false
id 'com.jfrog.bintray' version '1.8.4' apply false
id 'nebula.optional-base' version '4.0.1' apply false
id 'org.unbroken-dome.test-sets' version '1.5.1' apply false
}
if (!gradle.startParameter.taskNames.contains('release')) {
println "Not a release build, setting version to ${project.version}-SNAPSHOT"
project.version += '-SNAPSHOT'
}
task 'release' {
doLast {
println "Releasing $version"
}
}
subprojects { p ->
p.version = rootProject.version
p.plugins.withId('base') {
p.apply from: "$rootDir/gradle/dependency-management.gradle"
}
p.plugins.withId('maven-publish') {
p.apply from: "$rootDir/gradle/publishing.gradle"
}
p.plugins.withId('java') {
p.apply from: "$rootDir/gradle/common-java.gradle"
}
}