-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
52 lines (46 loc) · 1.43 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
48
49
50
51
52
buildscript {
apply from: file('gradle/buildscript.gradle'), to: buildscript
}
apply from: script('requireJavaVersion7')
apply from: script('dependencies')
apply from: script('wiki')
apply plugin: 'distribution'
description = 'Pipeline --the Continuous Delivery (CD) tool, which we and all stakeholders of the CD pipeline love to use'
group = 'cd.pipeline'
version = '0.3.0'
allprojects {
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'java'
group = createProjectGroupId(rootProject, it)
version = rootProject.version
jar.baseName = "${rootProject.name}-${it.name}"
}
distributions {
main {
contents {
into('bin') {
from { project(':listener').startScripts.outputs.files }
from { project(':runner').startScripts.outputs.files }
fileMode = 0755
}
into('lib') {
def libs = []
libs << project(':listener').configurations.runtime - project(':runner').configurations.runtime
libs << project(':runner').configurations.runtime
from libs
from project(':listener').jar
from project(':runner').jar
}
}
}
}
String createProjectGroupId(Project root, Project project) {
root.group << '.' << project.name.replaceAll('-', '.')
}
File script(String name) {
project.file("gradle/${name}.gradle")
}