Skip to content

Commit b6d764a

Browse files
committed
Gradle 9
1 parent 8ff920a commit b6d764a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

local-build-plugins/src/main/java/org/hibernate/orm/antlr/SplitGrammarGenerationTask.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private void generateLexer(File outputDir) {
117117

118118
execOperations.javaexec(
119119
(javaExecSpec) -> {
120-
javaExecSpec.setMain( "org.antlr.v4.Tool" );
120+
javaExecSpec.getMainClass().set( "org.antlr.v4.Tool" );
121121
javaExecSpec.classpath( getProject().getConfigurations().getByName( "antlr" ) );
122122
javaExecSpec.args(
123123
"-o", getProject().relativePath( outputDir.getAbsolutePath() ),
@@ -141,7 +141,7 @@ private void generateParser(File outputDir) {
141141

142142
execOperations.javaexec(
143143
(javaExecSpec) -> {
144-
javaExecSpec.setMain( "org.antlr.v4.Tool" );
144+
javaExecSpec.getMainClass().set( "org.antlr.v4.Tool" );
145145
javaExecSpec.classpath( getProject().getConfigurations().named( "antlr" ) );
146146
javaExecSpec.args(
147147
"-o", getProject().relativePath( outputDir.getAbsolutePath() ),

0 commit comments

Comments
 (0)