Skip to content

Commit

Permalink
Create a JPQL parser.
Browse files Browse the repository at this point in the history
Related: #2814.
  • Loading branch information
gregturn committed Feb 23, 2023
1 parent 3862112 commit 56f50d3
Show file tree
Hide file tree
Showing 26 changed files with 6,172 additions and 73 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<source.level>16</source.level>
<!-- AspectJ maven plugin can't handle 17 yet -->

<antlr>4.11.1</antlr>
<eclipselink>3.0.3</eclipselink>
<hibernate>6.1.4.Final</hibernate>
<hsqldb>2.7.1</hsqldb>
Expand Down
47 changes: 46 additions & 1 deletion spring-data-jpa/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@
</exclusions>
</dependency>

<dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr}</version>
</dependency>

<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj}</version>
Expand Down Expand Up @@ -344,6 +350,45 @@
</executions>
</plugin>

<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>${antlr}</version>
<executions>
<execution>
<goals>
<goal>antlr4</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<visitor>true</visitor>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>maven-replacer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<phase>process-sources</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<includes>
<include>target/generated-sources/antlr4/**/*.java</include>
</includes>
<variableTokenValueMap>
public class=class,public interface=interface
</variableTokenValueMap>
</configuration>
</plugin>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
Expand Down
Loading

0 comments on commit 56f50d3

Please sign in to comment.