forked from LinuxForHealth/connect-r-and-d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
128 lines (109 loc) · 6.18 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
plugins {
id 'java'
id 'application'
}
compileJava {
sourceCompatibility = project.supportedJavaVersion
targetCompatibility = project.supportedJavaVersion
}
repositories {
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
application {
mainClassName = 'com.linuxforhealth.connect.App'
}
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
// 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
}
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"
}
}