forked from openEHR/archie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
117 lines (87 loc) · 2.87 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
classpath 'org.owasp:dependency-check-gradle:1.4.5.1'
}
}
repositories {
mavenCentral()
}
wrapper {
gradleVersion = '5.6.4'
}
allprojects {
version = '0.10.0'
group = 'com.nedap.healthcare.archie'
ext.gradleScriptDir = "${rootProject.projectDir}/gradle"
//archivesBaseName = 'archie'
}
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
subprojects {
apply plugin: 'java'
apply plugin: 'org.owasp.dependencycheck'
apply from: "${gradleScriptDir}/publish-maven.gradle"
// 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.9.12'
ext.jacksonVersion = '2.9.10'
dependencies {
compile 'org.slf4j:slf4j-api:1.7.28'
compile "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:${jacksonVersion}"
compile 'com.google.guava:guava:28.1-jre'
compile "org.reflections:reflections:${reflectionsVersion}"
compile 'com.esotericsoftware:kryo-shaded:4.0.2' //for easy and relatively fast object cloning
compile('commons-io:commons-io:2.6'){
exclude group: 'commons-logging', module: 'commons-logging'
}
compile 'org.apache.commons:commons-text:1.6'
compile 'org.apache.commons:commons-lang3:3.8.1'
//java 10 no longer has these included by default, so explicit dependency is needed.
compile 'javax.xml.bind:jaxb-api:2.3.0'
compile 'com.sun.xml.bind:jaxb-core:2.3.0'
runtime 'com.sun.xml.bind:jaxb-impl:2.3.0'
compile 'javax.activation:activation:1.1.1'
testCompile 'junit:junit:4.+'
testCompile 'org.slf4j:slf4j-simple:1.7.25'
compile 'com.github.zafarkhaja:java-semver:0.9.0'
}
javadoc {
options.encoding = 'UTF-8'
}
//configure the jar files: sources and javaod
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
}
apply from: "${gradleScriptDir}/jacoco.gradle"