chore(build): fix gradle tasks dependencies

This commit is contained in:
Skylot
2023-04-20 19:10:44 +01:00
parent b7634024d6
commit e57787393e
3 changed files with 9 additions and 4 deletions
+2 -2
View File
@@ -11,9 +11,9 @@ stages:
java-11:
stage: test
image: eclipse-temurin:11
script: ./gradlew clean build dist
script: ./gradlew clean build dist copyExe
java-17:
stage: test
image: eclipse-temurin:17
script: ./gradlew clean build dist
script: ./gradlew clean build dist copyExe
+5 -1
View File
@@ -128,7 +128,10 @@ task pack(type: Zip) {
task copyExe(type: Copy) {
group 'jadx'
description = 'Copy exe to build dir'
mustRunAfter pack // not needed, but gradle throws warning because of same output dir
// next task dependencies not needed, but gradle throws warning because of same output dir
mustRunAfter jar
mustRunAfter pack
from tasks.getByPath('jadx-gui:createExe')
include '*.exe'
@@ -139,6 +142,7 @@ task copyExe(type: Copy) {
task distWinBundle(type: Copy, dependsOn: 'jadx-gui:distWinWithJre') {
group 'jadx'
description = 'Copy bundle to build dir'
mustRunAfter pack
destinationDir buildDir
from(tasks.getByPath('jadx-gui:distWinWithJre').outputs) {
include '*.zip'
+2 -1
View File
@@ -99,7 +99,7 @@ startScripts {
launch4j {
mainClassName = application.mainClass.get()
copyConfigurable = project.tasks.shadowJar.outputs.files
copyConfigurable = []
jarTask = project.tasks.shadowJar
icon = "${projectDir}/src/main/resources/logos/jadx-logo.ico"
outfile = "jadx-gui-${version}.exe"
@@ -116,6 +116,7 @@ launch4j {
downloadUrl = 'https://www.oracle.com/java/technologies/downloads/#jdk17-windows'
bundledJrePath = project.hasProperty("bundleJRE") ? '%EXEDIR%/jre' : '%JAVA_HOME%'
}
createExe.dependsOn(jar)
runtime {
addOptions('--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages')