Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up ShadowApplicationPlugin #1198

Merged
merged 11 commits into from
Jan 29, 2025
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public abstract class ShadowApplicationPlugin : Plugin<Project> {
project.resources.text.fromString(windowsStartScript)

task.classpath = project.files(shadowJar)
task.inputs.files(project.files(shadowJar))
Copy link
Member Author

@Goooler Goooler Jan 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address this to #1216.

task.mainClass.set(javaApplication.mainClass)
task.conventionMapping.map("applicationName", javaApplication::getApplicationName)
task.conventionMapping.map("outputDir") { project.layout.buildDirectory.dir("scriptsShadow").get().asFile }
Expand Down