-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (54 loc) · 1.33 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
plugins {
id 'java'
id 'maven'
id "com.github.bjornvester.xjc" version "1.3"
}
group = "com.ixopay"
version = "2.2.0"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
def xjcVersion_ = "2.3.1"
sourceSets {
example {
java {
compileClasspath += main.output
runtimeClasspath += main.output
}
}
}
configurations {
exampleCompile.extendsFrom compile
exampleRuntime.extendsFrom runtime
}
dependencies {
xjcPlugins("org.jvnet.jaxb2_commons:jaxb2-basics:0.12.0")
xjcPlugins("org.jvnet.jaxb2_commons:jaxb2-basics-annotate:1.1.0")
xjcPlugins("org.jvnet.jaxb2_commons:jaxb2-value-constructor:3.0")
compile("javax.xml.bind:jaxb-api:$xjcVersion_")
}
xjc {
xsdDir = file("$projectDir/src/main/resources/com/ixopay/client/schemas")
xjcVersion = xjcVersion_
generateEpisode = true
markGenerated = false
bindingFiles = files("$projectDir/src/main/resources/com/ixopay/client/bindings/java-ixopay.xjb")
options = ["-Xannotate", "-Xinheritance", "-Xvalue-constructor"]
}
javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
}
task sourcesJar(type: Jar) {
archiveClassifier.set('sources')
from(sourceSets.main.allSource)
}
task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier.set('javadoc')
from(javadoc.destinationDir)
}
artifacts {
archives sourcesJar
archives javadocJar
}