This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
289 lines (242 loc) · 10 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
import java.text.SimpleDateFormat
buildscript {
ext {
kotlinVersion = '1.3.72'
springBootVersion = '1.5.10.RELEASE'
}
repositories {
mavenCentral()
maven { url = 'https://maven.taktik.be/content/groups/public' }
maven { url = 'https://repo.spring.io/plugins-release' }
}
dependencies {
classpath('io.spring.gradle:propdeps-plugin:0.0.9.RELEASE')
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-allopen:${kotlinVersion}")
classpath('com.taktik.gradle:gradle-plugin-docker-java:1.2.0')
classpath('com.taktik.gradle:gradle-plugin-git-version:2.0.1')
classpath('com.github.ben-manes:gradle-versions-plugin:0.21.0')
}
}
apply plugin: 'git-version'
group = 'org.taktik.icure'
version = gitVersion
apply plugin: 'kotlin'
apply plugin: 'kotlin-spring'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'docker-java'
dockerJava.imageGroup = 'icure'
apply plugin: 'com.github.ben-manes.versions' // usage: ./gradlew dependencyUpdates
apply plugin: 'maven-publish'
configure(allprojects) {
apply plugin: 'propdeps'
apply plugin: 'propdeps-maven'
apply plugin: 'propdeps-idea'
apply plugin: 'propdeps-eclipse'
}
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
compileJava {
options.fork = true
options.forkOptions.with {
memoryMaximumSize = "4096m"
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ["-Xjsr305=strict"]
jvmTarget = "1.8"
}
}
sourceSets {
main {
java {
srcDir 'src/main/java'
srcDir 'submodules/Ektorp/org.ektorp/src/main/java'
srcDir 'submodules/Ektorp/org.ektorp.spring/src/main/java'
}
resources {
srcDir 'src/main/resources'
srcDir 'submodules/Ektorp/org.ektorp.spring/src/main/resources'
}
}
}
repositories {
mavenCentral()
maven {
url = "https://www.e-contract.be/maven2/"
}
maven {
url = "http://repo.ehealth.fgov.be/artifactory/maven2/"
}
maven {
url = "https://maven.taktik.be/content/groups/public"
}
flatDir {
dirs 'libs'
}
}
jar {
manifest {
attributes(
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
'Build-Revision' : gitVersion,
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}"
)
}
}
dependencies {
optional "org.springframework.boot:spring-boot-configuration-processor"
compile('org.springframework.boot:spring-boot-starter-jetty')
compile('org.springframework.boot:spring-boot-starter-jersey')
compile('org.springframework.boot:spring-boot-starter-mail')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-security')
compile('com.fasterxml.jackson.module:jackson-module-kotlin:2.9.2')
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.kotlin:kotlin-reflect")
compile group: 'org.springframework', name: 'spring-aspects', version: '4.3.14.RELEASE'
compile group: 'org.springframework', name: 'spring-websocket', version: '4.3.14.RELEASE'
compile group: 'org.springframework', name: 'spring-orm', version: '4.3.14.RELEASE'
// Logging
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.11'
compile group: 'ch.qos.logback', name: 'logback-access', version: '1.1.11'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
compile group: 'org.slf4j', name: 'jul-to-slf4j', version: '1.7.12'
compile group: 'org.slf4j', name: 'jcl-over-slf4j', version: '1.7.12'
compile group: 'org.slf4j', name: 'log4j-over-slf4j', version: '1.7.12'
// Java Commons
compile group: 'org.taktik.commons', name: 'commons-uti', version: '1.0'
compile(group: 'org.taktik.commons', name: 'commons-service', version: '1.0') {
exclude group: 'org.taktik.commons', module: 'commons-cluster'
exclude group: 'org.taktik.commons', module: 'commons-utils'
}
//Hibernate
compile group:'org.hibernate', name: 'hibernate-core', version: '4.3.10.Final'
compile group:'com.h2database', name: 'h2', version: '1.4.187'
// Jersey
compile group: 'org.jboss.resteasy', name: 'jaxrs-api', version: '3.0.8.Final'
compile group: 'com.google.code.gson', name: 'gson', version: '2.2.4'
// APIs
compile group: 'javax.annotation', name: 'jsr250-api', version: '1.0'
compile group: 'org.apache.ws.commons.axiom', name: 'axiom-impl', version: '1.2.15'
//compile group: 'com.sendgrid', name: 'sendgrid-java', version: '3.0.9'
// Others
//compile group: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1'
compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
compile group: 'org.ow2.asm', name: 'asm', version: '5.0.4'
compile group: 'org.ow2.asm', name: 'asm-commons', version: '5.0.4'
compile group: 'com.google.guava', name: 'guava', version: '20.0'
compile group: 'joda-time', name: 'joda-time', version: '2.9.7'
compile group: 'org.jdom', name: 'jdom-legacy', version: '1.1.3'
compile group: 'org.apache.httpcomponents', name: 'httpmime', version: '4.3.6'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.6'
compile group: 'org.apache.httpcomponents', name: 'httpcore', version: '4.3.3'
compile group: 'org.apache.httpcomponents', name: 'httpclient-cache', version: '4.3.6'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.5'
compile group: 'org.apache.commons', name: 'commons-compress', version: '1.12'
compile group: 'com.eaio.uuid', name: 'uuid', version: '3.2'
compile group: 'com.googlecode.jmapper-framework', name: 'jmapper-core', version: '1.2.0'
compile group: 'ma.glasnost.orika', name: 'orika-core', version: '1.5.2'
compile group: 'com.fasterxml.uuid', name: 'java-uuid-generator', version: '3.1.3'
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.2'
compile group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.3'
compile group: 'com.sendgrid', name: 'sendgrid-java', version: '4.4.1'
compile group: 'org.apache.axis2', name: 'axis2-kernel', version: '1.5.6'
compile group: 'org.apache.axis2', name: 'axis2-adb', version: '1.5.6'
compile group: 'org.apache.lucene', name: 'lucene-core', version: '4.10.4'
compile group: 'org.apache.lucene', name: 'lucene-analyzers-common', version: '4.10.4'
// Bouncy Castle
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.53'
compile group: 'org.bouncycastle', name: 'bcmail-jdk15on', version: '1.53'
//2FA
compile group:'org.jboss.aerogear', name:'aerogear-otp-java', version:'1.0.0'
// Swagger
compile group: 'io.swagger', name: 'swagger-jersey2-jaxrs', version: '1.5.16'
//Saxon
compile group: 'net.sf.saxon', name: 'Saxon-HE', version: '9.6.0-6'
//Ektorp dependencies
compile group: 'de.undercouch', name: 'actson', version: '1.2.0'
//DTO check
compile group: 'com.github.javaparser', name: 'javaparser-core', version: '2.0.0'
//JSP stuff
compile group: 'org.apache.taglibs', name: 'taglibs-standard-spec', version: '1.2.5'
compile group: 'org.apache.taglibs', name: 'taglibs-standard-impl', version: '1.2.5'
//EH Validator
compile group: 'com.ibm.icu', name: 'icu4j', version: '57.1'
compile name: 'probatron4j-custom-0.7.4'
compile name: 'ehvalidator-service-core-2.1.1'
//HAPI
compile group: 'ca.uhn.hapi', name: 'hapi-structures-v25', version: '2.3'
// mustache
compile group: 'com.github.spullara.mustache.java', name: 'compiler', version: '0.9.5'
// Runtime
runtime group: 'org.javassist', name: 'javassist', version: '3.18.1-GA'
testCompile('org.springframework.boot:spring-boot-starter-test')
}
compileJava.dependsOn(processResources)
// Setup resolution strategy
configurations.all {
resolutionStrategy {
// Don't cache changing modules at all
cacheChangingModulesFor 0, 'seconds'
force 'junit:junit:4.11'
force group: 'net.sf.jsignature.io-tools', name: 'easystream', version: '1.2.12'
}
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
exclude group: 'com.sun.security', module: 'pkcs11'
exclude group: 'javax.servlet', module: 'servlet-api'
exclude group: 'org.mortbay.jetty', module: 'jetty'
exclude group: 'commons-logging', module: 'commons-logging'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'log4j', module: 'log4j'
exclude group: 'log4j', module: 'apache-log4j-extras'
exclude group: 'asm', module: 'asm'
exclude group: 'javax', module: 'javaee-api'
exclude group: 'org.apache.openejb', module: 'javaee-api'
}
springBoot {
mainClass = "org.taktik.icure.ICureBackendApplicationKt"
}
bootRun {
if ( project.hasProperty('jvmArgs') ) {
jvmArgs = (project.jvmArgs.split("\\s+") as List)
}
}
// Write the full name of the dependency to the standard output
project.tasks.withType(AbstractPublishToMaven) {
doFirst {
println "PublishToMaven: " + project.group + ":" + project.name + ":" + project.version
}
}
publish {
dependsOn assemble
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
maven {
url "https://maven.taktik.be/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots' : 'releases'}/"
credentials {
username repoUsername
password repoPassword
}
}
}
}