-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
87 lines (72 loc) · 2.29 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
buildscript {
ext {
jaxbVersion = '2.2.7-b41'
}
repositories {
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
jcenter()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.4.0.RELEASE'
classpath 'gradle.plugin.org.openrepose:gradle-jaxb-plugin:2.2.3'
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'org.openrepose.gradle.plugins.jaxb'
task wrapper(type: Wrapper) {
gradleVersion = '3.0'
}
version = '0.0.1'
group = 'daggerok'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
maven { url 'https://plugins.gradle.org/m2/' }
jcenter()
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-data-rest'
compile 'org.springframework.boot:spring-boot-starter-data-mongodb'
compile 'org.springframework.boot:spring-boot-starter-hateoas'
compile 'org.springframework.boot:spring-boot-starter-mustache'
compile 'org.springframework.boot:spring-boot-devtools'
compile 'org.projectlombok:lombok'
compile 'org.webjars:bootstrap:3.3.7-1'
compile 'org.webjars:webjars-locator:0.32'
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:1.50.5'
compile 'org.springframework.boot:spring-boot-starter-ws'
compile 'wsdl4j:wsdl4j:1.6.3'
testCompile 'org.springframework.boot:spring-boot-starter-test'
jaxb "com.sun.xml.bind:jaxb-xjc:$jaxbVersion"
jaxb "com.sun.xml.bind:jaxb-impl:$jaxbVersion"
jaxb 'javax.xml.bind:jaxb-api:2.2.7'
jaxb 'org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.6.5'
}
jaxb {
xsdDir = "$project.projectDir/src/main/resources/schema"
bindingsDir = "$project.projectDir/src/main/resources/schema"
xjc {
generatePackage = "daggerok"
destinationDir = "$project.projectDir/src/main/gen"
}
}
def jaxbDir = jaxb.xjc.destinationDir
sourceSets {
main {
java {
srcDirs += jaxbDir
}
}
}
build.dependsOn xjc
build.shouldRunAfter clean, xjc
xjc.shouldRunAfter clean
defaultTasks 'clean', 'build'
springBoot {
executable = true
}