Skip to content

Commit

Permalink
build.gradle: remove dependency on check task from jar task - instead…
Browse files Browse the repository at this point in the history
… run it with the jlink task
  • Loading branch information
bwRavencl committed Aug 17, 2023
1 parent 1dcec17 commit eb99a83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ tasks.register('cleanLibsDirectory') {
doLast { delete base.libsDirectory }
}

jar.dependsOn check, cleanLibsDirectory
jar.dependsOn cleanLibsDirectory

tasks.register('generateVersion') {
description = "Generates the \'$versionFile\' source file"
Expand Down Expand Up @@ -601,13 +601,13 @@ compileJava {

run {
jvmArgs += enablePreviewJvmArg

if (os.linux)
jvmArgs += linuxJvmArgs
}

tasks.register('jlink', Exec) {
description = 'Executes the jlink command to create a customized minimal Java runtime inside the build directory. Also removes any preexisting runtime in the same directory.'
dependsOn check
group
doFirst { delete runtimeDir }
commandLine 'jlink', '--output', runtimeDir.get(), '--strip-debug', '--no-header-files', '--no-man-pages', '--strip-native-commands', '--add-modules', 'java.desktop,java.management,jdk.unsupported,java.logging,jdk.xml.dom'
Expand Down

0 comments on commit eb99a83

Please sign in to comment.