easyjson-antlr4json
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.github.bes2008.solution.easyjson</groupId>
<artifactId>easyjson-antlr4json</artifactId>
<version>4.1.7</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>easyjson</artifactId>
<groupId>io.github.bes2008.solution.easyjson</groupId>
<version>4.1.7</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>easyjson-antlr4json</artifactId>
<name>${project.groupId}:${project.artifactId}:${project.version}</name>
<properties>
<antlr4.version>4.5.3</antlr4.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>${antlr4.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.bes2008.solution.easyjson</groupId>
<artifactId>easyjson-core</artifactId>
</dependency>
<dependency>
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${basedir}/src/main/java</directory>
<targetPath>${project.build.outputDirectory}</targetPath>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
<!--
<resource>
<directory>${basedir}/src/generated/java</directory>
<targetPath>${project.build.outputDirectory}</targetPath>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
-->
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<testOutputDirectory>${project.build.testOutputDirectory}</testOutputDirectory>
<directory>${project.build}/src/generated</directory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>${antlr4.version}</version>
<configuration>
<encoding>UTF-8</encoding>
<sourceDirectory>${project.basedir}/src/main/resources/grammar</sourceDirectory>
</configuration>
<executions>
<execution>
<id>generate-sources: json</id>
<goals>
<goal>antlr4</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<outputDirectory>${project.basedir}/src/generated/java/com/jn/easyjson/antlr4json/generated</outputDirectory>
<includes>
<include>Json.g4</include>
</includes>
<arguments>
<argument>-package</argument>
<argument>com.jn.easyjson.antlr4json.generated</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>