-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
72 lines (61 loc) · 1.87 KB
/
build.gradle.kts
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
plugins {
id("java-library")
id("groovy")
id("com.github.rahulsom.waena.root").version("0.6.1")
id("com.github.rahulsom.waena.published").version("0.6.1")
id("com.github.dkorotych.gradle-maven-exec").version("3.0")
}
repositories {
mavenCentral()
}
dependencies {
api("org.jvnet.jaxb2_commons:jaxb2-basics-runtime:1.11.1")
api("commons-lang:commons-lang:2.6")
testImplementation("junit:junit:4.13.2")
testImplementation("xmlunit:xmlunit:1.6")
testImplementation("org.spockframework:spock-core:2.3-groovy-4.0")
testImplementation("org.apache.cxf:cxf-rt-frontend-jaxws:4.0.1")
testImplementation("org.apache.cxf:cxf-rt-transports-http:4.0.0")
compileOnly("com.sun.xml.bind:jaxb-impl:4.0.2")
}
group = "com.github.rahulsom"
description = "IHE ITI"
configure<nebula.plugin.contacts.ContactsExtension> {
validateEmails = true
addPerson("[email protected]", delegateClosureOf<nebula.plugin.contacts.Contact> {
moniker("Rahul Somasunderam")
roles("owner")
github("https://github.com/rahulsom")
})
}
val generateClients = tasks.create<com.github.dkorotych.gradle.maven.exec.MavenExec>("generateClients") {
goals("generate-sources")
inputs.dir("src/main/resources")
inputs.file("pom.xml")
inputs.file("maven/maven-wrapper.properties")
outputs.dir("target")
}
tasks.getByName("compileJava").dependsOn(generateClients)
tasks.getByName("sourceJar").dependsOn(generateClients)
sourceSets {
main {
java {
srcDir("target/generated-sources/cda")
srcDir("target/generated-sources/ihe")
}
}
}
tasks.withType<Javadoc>().configureEach {
options {
(this as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
}
}
tasks.getByName<Delete>("clean") {
delete.add("target")
}
tasks.getByName<Jar>("sourceJar") {
exclude("**/sun-jaxb.episode")
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}