-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathbuild.gradle
108 lines (92 loc) · 2.28 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
108
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
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 plugin: 'groovy'
apply from: "${rootDir}/gradle/versioning.gradle"
group = 'nl.saxion.nena.opentcs'
repositories {
jcenter()
}
dependencies {
compile localGroovy()
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compileOnly group: 'commons-io', name: 'commons-io', version: '2.5', classifier: 'sources'
implementation 'org.jetbrains:annotations:15.0'
}
subprojects {
apply from: rootProject.file('gradle/common.gradle')
}
evaluationDependsOnChildren()
distributions {
main {
contents.from {
project(':openTCS-NeNa-Kernel').ext.collectableDistDir
}
contents.from {
project(':openTCS-NeNa-KernelControlCenter').ext.collectableDistDir
}
contents.from {
project(':openTCS-NeNa-PlantOverview').ext.collectableDistDir
}
contents.from {
project(':openTCS-NeNa-Documentation').ext.collectableDistDir
}
}
}
task subDists {
dependsOn(':openTCS-NeNa-Kernel:installDist')
dependsOn(':openTCS-NeNa-KernelControlCenter:installDist')
dependsOn(':openTCS-NeNa-PlantOverview:installDist')
dependsOn(':openTCS-NeNa-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 << 'LICENSE'
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
}