Skip to content

Commit

Permalink
Fixed deprecated method in gradle (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
altro3 authored Nov 24, 2023
1 parent a5d9d78 commit 63d3a0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private void registerOptimizedDistribution(Project project,
task.setClasspath(classpath);
task.getMainClass().set(javaApplication.getMainClass());
task.getConventionMapping().map("applicationName", appConvention::getApplicationName);
task.getConventionMapping().map("outputDir", () -> new File(project.getBuildDir(), "optimizedScripts"));
task.getConventionMapping().map("outputDir", () -> new File(project.getLayout().getBuildDirectory().getAsFile().get(), "optimizedScripts"));
task.getConventionMapping().map("executableDir", appConvention::getExecutableDir);
task.getConventionMapping().map("defaultJvmOpts", appConvention::getApplicationDefaultJvmArgs);
});
Expand Down

0 comments on commit 63d3a0a

Please sign in to comment.