-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
101 lines (85 loc) · 2.07 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
buildscript {
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
jcenter()
}
dependencies {
// License plugin
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.12.1'
// Versions plugin
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
// Stats plugin
classpath 'org.kordamp.gradle:stats-gradle-plugin:0.2.0'
}
}
apply plugin: 'base'
apply plugin: 'distribution'
apply from: "${rootDir}/gradle/versioning.gradle"
group = 'de.fraunhofer.iml.opentcs.example'
repositories {
jcenter()
}
subprojects {
apply from: rootProject.file('gradle/common.gradle')
}
evaluationDependsOnChildren()
distributions {
main {
contents.from {
project(':openTCS-Tsh-Kernel').ext.collectableDistDir
}
contents.from {
project(':openTCS-Tsh-KernelControlCenter').ext.collectableDistDir
}
contents.from {
project(':openTCS-Tsh-PlantOverview').ext.collectableDistDir
}
contents.from {
project(':openTCS-Tsh-Documentation').ext.collectableDistDir
}
}
}
task subDists {
dependsOn(':openTCS-Tsh-Kernel:installDist')
dependsOn(':openTCS-Tsh-KernelControlCenter:installDist')
dependsOn(':openTCS-Tsh-PlantOverview:installDist')
dependsOn(':openTCS-Tsh-Documentation:installDist')
}
installDist.dependsOn subDists
distZip {
classifier = 'bin'
dependsOn subDists
}
distTar {
classifier = 'bin'
dependsOn subDists
compression = Compression.GZIP
}
task distSrcZip(type: Zip) {
classifier = 'src'
from "${rootDir}"
includes << 'config/**'
includes << 'gradle/**'
includes << 'lib/**'
includes << 'openTCS-*/**'
includes << 'src/**'
includes << '.nb-gradle-properties'
includes << '*.gradle'
includes << 'gradlew'
includes << 'gradlew.bat'
includes << 'README.md'
excludes << '.gradle'
excludes << '**/build'
}
artifacts {
archives distZip
archives distTar
archives distSrcZip
}
build {
dependsOn subprojects*.build
dependsOn installDist
}