Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Fix publishing of transmart-schema jar file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewelinagr committed Aug 15, 2022
1 parent 9d00d9a commit 93183e7
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions transmart-schemas/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,28 @@ dependencies {
testRuntime 'com.h2database:h2:1.4.200'
}

tasks.named("bootJar") {
from('src/main/resources') {
include '**/*.*'
}
jar {
manifest {
attributes(
'Implementation-Version': project.version
)
}
}

task createVersionFile() {
def file = new File("$projectDir/VERSION")
file.createNewFile()
file.text = "${version}"
task createVersionFile {
doLast {
def file = new File("$projectDir/VERSION")
file.createNewFile()
file.text = "${version}"
}
}
assemble.dependsOn 'createVersionFile'

publishToMavenLocal.dependsOn assemble
jar.dependsOn assemble

publishing {
publications {
bootJava(MavenPublication) {
mavenJava(MavenPublication) {
artifact jar
}
}
Expand Down

0 comments on commit 93183e7

Please sign in to comment.