Skip to content

Commit

Permalink
ci: zip javascore contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Aug 3, 2023
1 parent 0f1bea0 commit b0f468b
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions contracts/javascore/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,24 @@ gradle.taskGraph.whenReady { taskGraph ->
}
}

task collectJars(type: Copy) {
from subprojects.jar

task collectOptimizedJars(type: Copy) {
from subprojects.collect { subproject ->
subproject.fileTree('build/libs') {
include '**/*-optimized.jar'
}
}
into "$buildDir/output-jars"
}

task zipOutputJars(type: Zip) {
dependsOn collectJars
from "$buildDir/output-jars"
archiveFileName = "${rootProject.name}-output-jars.zip"
task zipOutputOptimizedJars(type: Zip) {
dependsOn collectOptimizedJars
from("$buildDir/output-jars") {
include '**/*-optimized.jar'
}
archiveFileName = "javascore-contracts.zip"
destinationDirectory = file("$buildDir")
}



0 comments on commit b0f468b

Please sign in to comment.