This repository has been archived by the owner on Oct 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
148 lines (126 loc) · 7.13 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
plugins {
id 'java'
id 'application'
}
compileJava {
sourceCompatibility = project.supportedJavaVersion
targetCompatibility = project.supportedJavaVersion
}
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
jcenter()
maven {
url "https://dl.bintray.com/ibm-watson-health/ibm-fhir-server-releases"
}
}
application {
mainClassName = 'com.linuxforhealth.connect.App'
}
configurations {
// excluding xerces transitive dependency which causes conflict with JDK/JRE
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8016153
// https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8015487
runtime.exclude group: 'xerces', module: 'xercesImpl'
}
dependencies {
// camel libraries
implementation group: 'org.apache.camel', name: 'camel-core', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-fhir', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-dataformat', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-exec', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-mail', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-kafka', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-http', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-jackson', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-jasypt', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-jetty', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-jsonpath', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-main', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-nats', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-rest', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-support', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-jdbc', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-xpath', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-base64', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-tika', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-bindy', version: project.camelVersion
// HTTP utils
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: project.httpVersion
// Java utils (OS type)
implementation group: 'org.apache.commons', name: 'commons-lang3', version: project.commonsLang3Version
implementation group: 'org.apache.commons', name: 'commons-dbcp2', version: project.commonsDbcp2Version
// data format support
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: project.jacksonVersion
implementation group: 'org.json', name: 'json', version: project.jsonVersion
// logging
implementation group: 'ch.qos.logback', name: 'logback-core', version: project.logbackVersion
implementation group: 'ch.qos.logback', name: 'logback-classic', version: project.logbackVersion
implementation group: 'org.slf4j', name: 'slf4j-api', version: project.slf4jVersion
// HL7-MLLP processing
implementation group: 'org.apache.camel', name: 'camel-netty', version: project.camelVersion
implementation group: 'org.apache.camel', name: 'camel-hl7', version: project.camelVersion
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v21', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v22', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v23', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v231', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v24', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v25', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v251', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v26', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v27', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v28', version: project.hapiHl7Version
implementation group: 'ca.uhn.hapi', name: 'hapi-structures-v281', version: project.hapiHl7Version
// FHIR Processing
implementation group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-base', version: project.hapiFhirVersion
implementation group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-structures-r4', version: project.hapiFhirVersion
implementation group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-client', version: project.hapiFhirVersion
implementation group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-structures-dstu3', version: project.hapiFhirVersion
implementation group: 'ca.uhn.hapi.fhir', name: 'hapi-fhir-converter', version: project.hapiFhirConvertorVersion
// PostgreSQL
implementation group: 'org.postgresql', name: 'postgresql', version: project.postgresVersion
// testing
testImplementation group: 'org.apache.camel', name: 'camel-test-junit5', version: project.camelVersion
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: project.junitVersion
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-params', version: project.junitVersion
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: project.junitVersion
// HL7 to FHIR converter
implementation group: 'io.github.linuxforhealth' , name:'hl7v2-fhir-converter', version:project.hl7v2FHIRConverterVersion
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Main-Class': application.mainClassName,
'Class-Path': configurations.runtimeClasspath.collect { 'libs/' + it.getName() }.join(' '),
'Implementation-Title': 'com.linuxforhealth.com',
'Implementation-Version': project.projectVersion,
'Implementation-Vendor': 'Linux For Health'
)
}
}
task archiveDependencies(type: Tar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
archiveFileName = 'linux-for-health-connect-dependencies.tar'
destinationDirectory = file('build/libs')
outputs.file(archiveFile)
from configurations.compileClasspath.each {
from it.getPath()
}
}
build.dependsOn archiveDependencies
processResources {
filesMatching('application.properties') {
expand(project.properties)
}
}
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}