File tree 1 file changed +2
-3
lines changed
plugin/src/main/kotlin/org/gradleweaver/plugins/jlink
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package org.gradleweaver.plugins.jlink
3
3
import org.gradle.api.Plugin
4
4
import org.gradle.api.Project
5
5
import org.gradle.api.plugins.ApplicationPlugin
6
- import org.gradle.api.tasks.bundling.Compression
7
6
import org.gradle.api.tasks.bundling.Tar
8
7
import org.gradle.api.tasks.bundling.Zip
9
8
import org.gradle.kotlin.dsl.create
@@ -66,13 +65,13 @@ open class JLinkPlugin : Plugin<Project> {
66
65
group = JLINK_TASK_GROUP
67
66
description = " Generates a .zip archive file of a native Java runtime image for '${options.name} '."
68
67
from(project.tasks.getByName(jlinkTaskName).outputs)
68
+ baseName = " ${project.name} -${options.name.toLowerCase().replace(' ' , ' -' )} "
69
69
}
70
70
project.tasks.register(generateJLinkArchiveTaskName(" Tar" , options.name), Tar ::class .java) {
71
71
group = JLINK_TASK_GROUP
72
72
description = " Generates a .tar.gz archive file of a native Java runtime image for '${options.name} '."
73
73
from(project.tasks.getByName(jlinkTaskName).outputs)
74
- compression = Compression .GZIP
75
- extension = " tar.gz"
74
+ baseName = " ${project.name} -${options.name.toLowerCase().replace(' ' , ' -' )} "
76
75
}
77
76
}
78
77
You can’t perform that action at this time.
0 commit comments