Skip to content

Commit

Permalink
Optimize jarFile init
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Nov 21, 2024
1 parent 818b6b7 commit 936ef83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public abstract class ShadowApplicationPlugin : Plugin<Project> {
it.group = ApplicationPlugin.APPLICATION_GROUP
it.conventionMapping.map("jvmArgs") { javaApplication.applicationDefaultJvmArgs }
it.jarFile.fileProvider(
project.providers.provider {
project.file("${install.get().destinationDir.path}/lib/${shadowJar.get().archiveFile.get().asFile.name}")
install.zip(shadowJar) { i, s ->
project.file("${i.destinationDir.path}/lib/${s.archiveFile.get().asFile.name}")
},
)
val toolchain = project.extensions.getByType(JavaPluginExtension::class.java).toolchain
Expand Down

0 comments on commit 936ef83

Please sign in to comment.