forked from Ixolit/java-ixopay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (60 loc) · 1.55 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "com.github.jacobono:gradle-jaxb-plugin:1.3.6"
}
}
apply plugin: "java"
apply plugin: "maven"
apply plugin: "com.github.jacobono.jaxb"
group = "com.github.ixolit"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
// maven { url "https://jitpack.io" } only needed for unused xjc plugin
}
def xjcVersion = "2.2.7"
sourceSets {
example {
java {
compileClasspath += main.output
runtimeClasspath += main.output
}
}
}
dependencies {
jaxb("org.jvnet.jaxb2_commons:jaxb2-basics-ant:0.6.5")
jaxb("org.jvnet.jaxb2_commons:jaxb2-basics:0.6.4")
jaxb("org.jvnet.jaxb2_commons:jaxb2-basics-annotate:0.6.4")
jaxb("com.sun.xml.bind:jaxb-xjc:$xjcVersion")
jaxb("com.sun.xml.bind:jaxb-impl:$xjcVersion")
jaxb("javax.xml.bind:jaxb-api:$xjcVersion")
jaxb("org.jvnet.jaxb2_commons:jaxb2-value-constructor:3.0")
compile("javax.xml.bind:jaxb-api:$xjcVersion")
}
jaxb {
System.setProperty('javax.xml.accessExternalSchema', 'all')
xsdDir = "src/main/resources/schemas/"
episodesDir = "src/main/resources/episodes"
bindingsDir = "src/main/resources/bindings"
bindings = ["ixopay.xjb"]
xjc {
taskClassname = "org.jvnet.jaxb2_commons.xjc.XJC2Task"
args = ["-Xannotate", "-Xinheritance", "-Xvalue-constructor"]
}
}
configurations {
exampleCompile.extendsFrom compile
exampleRuntime.extendsFrom runtime
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}