Skip to content

Commit

Permalink
fix: replace deprecated JavaExecSpec#setMain(String)
Browse files Browse the repository at this point in the history
  • Loading branch information
KengoTODA committed Oct 7, 2021
1 parent 9d1799c commit fa63551
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private Action<? super JavaExecSpec> configureJavaExec(SpotBugsWorkParameters pa
spec.setJvmArgs(params.getJvmArgs().get());
spec.classpath(params.getClasspath());
spec.setArgs(params.getArgs().get());
spec.setMain("edu.umd.cs.findbugs.FindBugs2");
spec.getMainClass().set("edu.umd.cs.findbugs.FindBugs2");
String maxHeapSize = params.getMaxHeapSize().getOrNull();
if (maxHeapSize != null) {
spec.setMaxHeapSize(maxHeapSize);
Expand Down

0 comments on commit fa63551

Please sign in to comment.