chenzhenjia commented on PR #20008: URL: https://github.com/apache/shardingsphere/pull/20008#issuecomment-1326959090
I am not willing to downgrade hibernate to 5.x or 6.x, I provide a gradle solution: 1. copy [antlr4 dir](https://github.com/apache/shardingsphere/tree/master/sql-parser/dialect/mysql/src/main/antlr4) all file to project `src/main/antlr` dir ``` // my project tree project/src/ ├── main │ ├── antlr │ ├── java │ ├── resources ``` 2. Modify build.gradle.kts ``` //build.gradle.kts plugins { idea antlr id("org.springframework.boot") } dependencies { antlr("org.antlr:antlr4:4.10.1") compileOnly("org.antlr:antlr4-runtime:4.10.1") } tasks.generateGrammarSource { exclude("imports/**") arguments = listOf( "-lib", project.file("/src/main/antlr/imports/mysql").absolutePath, "-package", "org.apache.shardingsphere.sql.parser.autogen", "-visitor" ) } ``` 4. run project -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
