Skip to content

Commit

Permalink
Use the mainClass property instead of deprecated `setMain(String) m…
Browse files Browse the repository at this point in the history
…ethod`

Closes gh-34
  • Loading branch information
rainboyan committed Oct 15, 2024
1 parent 736dce8 commit af6705c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ abstract class AbstractGroovyTemplateCompileTask extends AbstractCompile {
@Override
@CompileDynamic
void execute(JavaExecSpec javaExecSpec) {
javaExecSpec.setMain(getCompilerName())
javaExecSpec.getMainClass().set(getCompilerName())
javaExecSpec.setClasspath(getClasspath())

def jvmArgs = compileOptions.forkOptions.jvmArgs
Expand Down

0 comments on commit af6705c

Please sign in to comment.