-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
65 lines (53 loc) · 1.94 KB
/
build.gradle
File metadata and controls
65 lines (53 loc) · 1.94 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
import org.gradle.internal.jvm.Jvm
// apply the script plugins
plugins {
id 'java'
}
// project properties
group = 'com.imsweb'
version = '1.0'
description = 'Your project description here.'
sourceCompatibility = JavaVersion.VERSION_1_8
// print which version of Java is being used
println "Starting build process using Java ${Jvm.current()}"
// where to find the project dependencies
repositories {
mavenCentral()
}
// project dependencies
dependencies {
implementation 'com.imsweb:validation:2.8'
implementation 'com.imsweb:validation-edits-seer:019-02'
implementation 'com.imsweb:validation-edits-naaccr-translated:005-01'
implementation 'com.imsweb:staging-algorithm-cs:02.05.50.3'
implementation 'com.imsweb:staging-algorithm-tnm:1.9.2'
implementation 'com.imsweb:staging-algorithm-eod-public:1.6.1'
implementation 'com.imsweb:layout:1.21'
}
// enforce UTF-8, display the compilation warnings
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
}
// the Javadoc was made way too strict in Java 8 and it's not worth the time fixing everything!
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
// customize the manifest
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version,
'Implementation-Vendor': 'Information Management Services Inc.',
'Created-By': System.properties['java.vm.version'] + ' (' + System.properties['java.vm.vendor'] + ')',
'Built-By': System.getProperty('user.name'),
'Built-Date': new Date(),
'Built-JDK': System.getProperty('java.version')
)
}
}
// Gradle wrapper, this allows to build the project without having to install Gradle...
wrapper {
gradleVersion = '5.5.1'
distributionType = Wrapper.DistributionType.ALL
}