Skip to content

Commit

Permalink
Fix build (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Peels <[email protected]>
  • Loading branch information
mpeels and Michael Peels authored Dec 13, 2024
1 parent aae4c97 commit 3ce3e7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions cdaschema/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ task generateXmlBeans(type: JavaExec) {

}

task copyJar(type: Copy) {
from 'build/libs/cda-schema.jar'
into "${project(':data-ingestion-service').projectDir}/libs/"
}

compileJava.dependsOn generateXmlBeans

// Disable the default jar task
Expand All @@ -63,5 +58,9 @@ artifacts {
archives cdaSchemaJar
}

task copyJar(type: Copy) {
from "${buildDir}/libs/cda-schema.jar"
into "${project(':data-ingestion-service').projectDir}/libs/"
}
cdaSchemaJar.mustRunAfter compileJava
build.finalizedBy copyJar
generateXmlBeans.finalizedBy(copyJar)
4 changes: 2 additions & 2 deletions data-ingestion-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ task jaxb {
compileJava.dependsOn jaxb

if (project != project.rootProject || project.hasProperty('remoteBuild')) {
compileJava.mustRunAfter(":hl7-parser:build")
compileJava.mustRunAfter(":hl7-parser:copyJar")
compileJava.mustRunAfter(":cdaschema:copyJar")
}

Expand Down Expand Up @@ -283,7 +283,7 @@ jar {

// Conditionally add dependencies from projects
if (findProject(':hl7-parser')) {
dependsOn(':hl7-parser:jar')
dependsOn(':hl7-parser:copyJar')
}

if (findProject(':cdaschema')) {
Expand Down
2 changes: 1 addition & 1 deletion hl7-parser/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ task copyJar(type: Copy) {
into "${project(':data-ingestion-service').projectDir}/libs/"
}

build.dependsOn copyJar
build.finalizedBy(copyJar)

0 comments on commit 3ce3e7f

Please sign in to comment.