Skip to content

Commit

Permalink
Removed legacy tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse committed Aug 22, 2022
1 parent b9a34a0 commit 9df225e
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions buildSrc/src/main/groovy/jvm-application.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,3 @@ plugins {
id 'jvm-common'
id 'has-shadow-jar'
}

task assembleDistRename(type: Copy) {
def srcFile = "${project.name}-shadow.zip"
def dstFile = "${project.name}.zip"

include srcFile

from(file(project.buildDir.absolutePath + "/distributions"))
destinationDir(file(project.buildDir.absolutePath + "/distributions"))

dependsOn assembleShadowDist

rename {
it.replace(srcFile, dstFile)
}
}

task assembleDistCleanup(type: Delete) {
def dir = project.buildDir.absolutePath + "/distributions/"
delete("$dir${project.name}-shadow.zip")
delete("$dir${project.name}-shadow.tar")
delete("$dir${project.name}.tar")
dependsOn assembleDistRename
}

task assembleOutputs {
dependsOn assembleDist, assembleDistCleanup
}

0 comments on commit 9df225e

Please sign in to comment.