forked from thehyve/Open-Clinica-Data-Uploader
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
139 lines (116 loc) · 3.94 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
buildscript {
ext {
def date = new Date()
def formattedDate = date.format('yyyyMMdd-HHmmss')
project.ext.set("dateStamp", formattedDate)
springBootVersion = '1.3.3.RELEASE'
}
repositories {
jcenter()
mavenCentral()
maven { url "https://repo.spring.io/plugins-snapshot" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:0.6.0.BUILD-SNAPSHOT"
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'no.nils:wsdl2java:0.10'
}
}
import org.apache.tools.ant.filters.*
apply plugin: 'no.nils.wsdl2java'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
apply plugin: "jacoco"
processResources {
filesMatching("**/messages.properties") {
filter ReplaceTokens, tokens: [
"application.version.stamp": project.property('application.version.stamp') + "-" + "${project.property('dateStamp')}"
]
}
}
jacocoTestReport {
reports {
xml.enabled true
}
}
wsdl2javaExt {
cxfVersion = "2.5.1"
deleteGeneratedSourcesOnClean = true
}
wsdl2java {
generatedWsdlDir = file("src/main/generated") // target directory for generated source coude
wsdlDir = file("src/main/wsdl")
wsdlsToGenerate = [
['src/main/wsdl/studySubjectWsdl.wsdl'],
['src/main/wsdl/studyWsdl.wsdl'],
['src/main/wsdl/eventWsdl.wsdl'],
['src/main/wsdl/studyEventDefinitionWsdl.wsdl'],
['src/main/wsdl/dataWsdl.wsdl'],
]
}
ext {
protobufOutputDir = file("src/main/generated")
}
idea.module {
excludeDirs -= file("$buildDir")
sourceDirs += protobufOutputDir
}
war {
baseName = 'ocdi'
version = project.property('application.version.stamp') + "-" + "${project.property('dateStamp')}"
}
jar {
baseName = 'ocdi'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-data-jpa')
compile('org.springframework.boot:spring-boot-devtools')
compile('org.springframework.boot:spring-boot-starter-security')
compile('org.springframework.session:spring-session')
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-ws')
compile('postgresql:postgresql:9.1-901-1.jdbc4')
compile("org.springframework.ws:spring-ws-core")
compile('net.sourceforge.nekohtml:nekohtml:1.9.22')
compile('commons-codec:commons-codec:1.10')
compile('org.apache.httpcomponents:httpclient:4.5.2')
compile('org.apache.commons:commons-lang3:3.1')
compile('commons-io:commons-io:2.5')
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('co.unruly:java-8-matchers:1.4')
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
}
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14'
}
test {
afterTest { desc, result ->
println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
maxHeapSize "2g"
}
println '==========================================================='
println ''
println " Building ${project.property('name')}, ${project.property('application.version.stamp')}"
println " Timestamp: ${project.property('dateStamp')}"
println ''
println '==========================================================='
compileJava.dependsOn(wsdl2java)