-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
112 lines (90 loc) · 3.57 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
buildscript {
ext {
springBootVersion = '2.1.1.RELEASE'
lombokVersion = "1.18.4"
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
maven { url 'https://plugins.gradle.org/m2/' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
apply plugin: 'idea'
apply plugin: 'java'
sourceCompatibility = 11
group = 'com.bir'
version = "1.0.0-SNAPSHOT"
jar {
manifest {
attributes('Implementation-Title': project.name, 'Implementation-Version': project.version)
}
}
def sourceGeneratedDir = 'src/main/java'
configurations {
jaxb
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web-services:${springBootVersion}")
annotationProcessor("org.projectlombok:lombok:${lombokVersion}")
testAnnotationProcessor("org.projectlombok:lombok:${lombokVersion}")
compile("org.springframework.boot:spring-boot-starter-web-services:${springBootVersion}")
compile("javax.validation:validation-api:1.1.0.Final")
compile("org.hibernate:hibernate-validator:5.2.4.Final")
compile("joda-time:joda-time:2.9.9")
compile("javax.xml.soap:javax.xml.soap-api:1.4.0")
compile("com.sun.xml.messaging.saaj:saaj-impl:1.4.0")
compile("javax.xml.bind:jaxb-api:2.3.0")
compile("com.sun.xml.bind:jaxb-impl:2.3.0")
compile("com.sun.xml.bind:jaxb-core:2.3.0")
compile("org.slf4j:slf4j-api:1.7.9")
compile("org.apache.commons:commons-lang3:3.8.1")
compile("org.apache.httpcomponents:httpclient:4.5.6")
compile("org.apache.ws.commons.axiom:axiom-api:1.2.16")
compile("org.apache.ws.commons.axiom:axiom-impl:1.2.16")
compileOnly("org.projectlombok:lombok:${lombokVersion}")
testCompile "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
testCompile 'junit:junit:4.12'
testCompile 'org.junit.jupiter:junit-jupiter-api:5.2.0'
testCompile 'io.projectreactor:reactor-test:3.1.8.RELEASE'
testCompile 'org.apache.httpcomponents:httpclient:4.5.6'
testCompileOnly("org.projectlombok:lombok:${lombokVersion}")
jaxb "javax.xml.bind:jaxb-api:2.3.0"
jaxb "com.sun.xml.bind:jaxb-impl:2.3.0"
jaxb "com.sun.xml.bind:jaxb-core:2.3.0"
jaxb "com.sun.xml.bind:jaxb-xjc:2.3.0"
jaxb "org.jvnet.jaxb2_commons:jaxb2-basics-ant:1.11.1"
jaxb "org.jvnet.jaxb2_commons:jaxb2-basics:1.11.1"
jaxb "org.jvnet.jaxb2_commons:jaxb2-basics-annotate:1.0.4"
jaxb "org.slf4j:slf4j-simple:1.7.9"
jaxb "javax.activation:activation:1.1.1"
compile("org.jvnet.mimepull:mimepull:1.9.10")
}
configurations.all {
exclude group: "commons-logging", module: "commons-logging"
}
task genJaxbStubs {
System.setProperty('javax.xml.accessExternalSchema', 'file')
doLast() {
project.ant {
mkdir(dir: sourceGeneratedDir)
taskdef name: "xjc", classname: "com.sun.tools.xjc.XJCTask",
classpath: configurations.jaxb.asPath
xjc(destdir: sourceGeneratedDir, schema: "$projectDir/spec/bir/UslugaBIRzewnPubl_wsdl0.xsd",
package: "com.bir.wsdl", binding: "$projectDir/spec/jaxb-bindings.xjb", fork: true) {
arg line: '-XautoNameResolution'
arg line: '-wsdl'
arg line: '-extension'
arg line: '-verbose'
}
}
}
}