-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.gradle
48 lines (37 loc) · 1.29 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.netflix.nebula:nebula-publishing-plugin:13.6.1'
classpath 'com.netflix.nebula:nebula-release-plugin:13.1.1'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
ext {
versions = [:]
}
versions.jenkins = '2.121'
versions.jobDsl = '1.76'
versions.groovy = '2.4.11'
versions.spock = '1.1-groovy-2.4'
apply plugin: 'nebula.nebula-release'
subprojects {
apply plugin: 'groovy'
apply plugin: 'nebula.maven-nebula-publish'
apply plugin: 'nebula.javadoc-jar'
apply plugin: 'nebula.source-jar'
apply from: "${rootDir}/gradle/bintrayUpload.gradle"
repositories {
maven { url 'http://repo.jenkins-ci.org/public' }
jcenter()
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
//tasks.release.finalizedBy subprojects.collect { it.tasks.bintrayUpload }
//tasks.release.finalizedBy ':jenkins-job-dsl-test-support:bintrayUpload', ':jenkins-job-dsl-gradle-plugin:publishPlugins'
tasks.release.dependsOn subprojects.collect { it.tasks.check }
if (ext.has('release.stage') && ext.get('release.stage') in ['dev', 'SNAPSHOT']) {
rootProject.tasks.postRelease.dependsOn subprojects.collect { it.tasks.publishToMavenLocal }
}