-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
70 lines (59 loc) · 1.58 KB
/
build.gradle
File metadata and controls
70 lines (59 loc) · 1.58 KB
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
/*
* Copyright (C) 2017. The UAPI Authors
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at the LICENSE file.
*
* You must gained the permission from the authors if you want to
* use the project into a commercial product
*/
ext {
thisRepo = 'tutorial'
}
apply from: '.config/uapi/all.config.gradle'
apply from: '.config/uapi/base.config.gradle'
apply from: '.config/uapi/cornerstone.config.gradle'
apply from: '.config/uapi/facility.config.gradle'
apply from: '.config/uapi/tutorial.config.gradle'
apply from: '.config/uapi/functions.gradle'
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'application'
group = "${allCfg.group}"
version = getBuildVersion(project.name)
sourceCompatibility = 11
targetCompatibility = 11
configurations {
codacy
}
ext.moduleName = "${project.name}"
compileJava {
inputs.property("moduleName", moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
classpath = files()
}
}
jar {
manifest.attributes
exclude('**/*.java')
}
mainClassName = 'uapi.app.Bootstrap'
task copyConfig {
def cfgDir = file("conf")
outputs.dir cfgDir
}
distributions {
main {
baseName = project.name
contents {
from (copyConfig) {
into "conf"
}
}
}
}
}