-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
107 lines (91 loc) · 2.19 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
102
103
104
105
106
107
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
// License plugin
classpath 'gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.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' // To add "clean" task to the root project.
apply plugin: 'distribution'
apply plugin: 'com.github.ben-manes.versions'
apply from: "${rootDir}/gradle/common.gradle"
subprojects {
apply from: rootProject.file('gradle/common.gradle')
}
evaluationDependsOnChildren()
distributions {
main {
contents.from {
project(':openTCS-Kernel').ext.collectableDistDir
}
contents.from {
project(':openTCS-KernelControlCenter').ext.collectableDistDir
}
contents.from {
project(':openTCS-PlantOverview').ext.collectableDistDir
}
contents.from {
project(':openTCS-Documentation').ext.collectableDistDir
}
}
}
task statsAggregate(type: org.kordamp.gradle.stats.AggregateStatsReportTask) {
dependsOn subprojects*.stats
}
task subDists {
dependsOn(':openTCS-Kernel:installDist')
dependsOn(':openTCS-KernelControlCenter:installDist')
dependsOn(':openTCS-PlantOverview:installDist')
dependsOn(':openTCS-Documentation:installDist')
}
task install {
dependsOn subprojects*.install
}
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 << 'openTCS-*/**'
includes << 'src/**'
includes << '.nb-gradle-properties'
includes << '*.gradle'
includes << 'gradlew'
includes << 'gradlew.bat'
excludes << '.gitlab'
excludes << '.gradle'
excludes << '**/build'
}
artifacts {
archives distZip
archives distSrcZip
}
build {
dependsOn subprojects*.build
dependsOn installDist
}
task release {
dependsOn build
dependsOn subprojects*.release
dependsOn distZip
dependsOn distSrcZip
}