forked from nedap/archie
-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
119 lines (84 loc) · 3.22 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
109
110
111
112
113
114
115
116
117
118
119
repositories {
mavenCentral()
}
wrapper {
gradleVersion = '5.6.4'
}
allprojects {
version = '3.12.0'
group = 'com.nedap.healthcare.archie'
ext.gradleScriptDir = "${rootProject.projectDir}/gradle"
//archivesBaseName = 'archie'
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:all', '-quiet')
}
}
gradle.ext.ossrhUsernameSafe = hasProperty('ossrhUsername') ? ossrhUsername : ""
gradle.ext.ossrhPasswordSafe = hasProperty('ossrhPassword') ? ossrhPassword : ""
gradle.ext.shouldSign = hasProperty('signing.keyId')
gradle.ext.isParallel = hasProperty('org.gradle.parallel') ? project.property('org.gradle.parallel') == 'true' : false
apply from: "${gradleScriptDir}/publish-maven.gradle"
subprojects {
apply plugin: 'java-library'
// plugins {
// id 'com.github.ben-manes.versions' version '0.13.0'
// }
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
ext.reflectionsVersion = '0.10.2'
ext.jacksonVersion = '2.18.0'
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
api 'org.slf4j:slf4j-api:1.7.36'
api "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
api "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
api "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
implementation 'com.google.guava:guava:33.3.1-jre'
implementation "org.reflections:reflections:${reflectionsVersion}"
implementation 'com.esotericsoftware.kryo:kryo5:5.6.2'
implementation('commons-io:commons-io:2.17.0'){
exclude group: 'commons-logging', module: 'commons-logging'
}
implementation 'org.apache.commons:commons-text:1.12.0'
implementation 'org.apache.commons:commons-lang3:3.17.0'
//java 10 no longer has these included by default, so explicit dependency is needed.
api 'javax.xml.bind:jaxb-api:2.3.1'
api 'com.sun.xml.bind:jaxb-core:2.3.0.1'
runtimeOnly 'com.sun.xml.bind:jaxb-impl:2.3.3'
api 'javax.activation:activation:1.1.1'
api 'org.threeten:threeten-extra:1.8.0'
testImplementation 'junit:junit:4.+'
testImplementation 'org.slf4j:slf4j-simple:1.7.36'
api 'com.github.zafarkhaja:java-semver:0.10.2'
}
javadoc {
options.encoding = 'UTF-8'
}
test {
if(JavaVersion.current() != JavaVersion.VERSION_1_8) {
jvmArgs = ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'
, '--add-opens', 'java.base/java.lang.invoke=ALL-UNNAMED'
, '--add-opens', 'java.base/java.net=ALL-UNNAMED'
, '--add-opens', 'java.base/java.nio=ALL-UNNAMED'
, '--add-opens', 'java.base/java.time=ALL-UNNAMED'
, '--add-opens', 'java.base/java.util=ALL-UNNAMED'
, '--add-opens', 'java.base/java.util.concurrent.atomic=ALL-UNNAMED'
, '--add-opens', 'java.base/sun.nio.ch=ALL-UNNAMED'
, '--add-opens', 'java.base/sun.util.calendar=ALL-UNNAMED']
}
testLogging {
events "failed"
exceptionFormat "full"
}
}
}
apply from: "${gradleScriptDir}/jacoco.gradle"