-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from rahulsom/build-with-gradle-and-waena
chore: Use Gradle and Waena to build
- Loading branch information
Showing
15 changed files
with
450 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Gradle Build | ||
|
||
on: | ||
pull_request: | ||
branches: ['*'] | ||
push: | ||
branches: ['*'] | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build: | ||
uses: rahulsom/_/.github/workflows/gradle.yml@main | ||
with: | ||
java-version: 8 | ||
secrets: | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_sonatypePassword }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_signingKey }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_signingPassword }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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-PUBLISHED-BY-MISTAKE") | ||
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.0") | ||
testImplementation("org.apache.cxf:cxf-rt-transports-http:4.0.0") | ||
compileOnly("com.sun.xml.bind:jaxb-impl:2.3.7") | ||
} | ||
|
||
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() | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.