| 1 |
<!-- |
| 2 |
~ Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. |
| 3 |
~ Use of this file is governed by the BSD 3-clause license that |
| 4 |
~ can be found in the LICENSE.txt file in the project root. |
| 5 |
--> |
| 6 |
|
| 7 |
<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/maven-v4_0_0.xsd"> |
| 8 |
|
| 9 |
<modelVersion>4.0.0</modelVersion> |
| 10 |
<parent> |
| 11 |
<groupId>org.antlr</groupId> |
| 12 |
<artifactId>antlr4-master</artifactId> |
| 13 |
<version>4.9.2</version> |
| 14 |
</parent> |
| 15 |
<artifactId>antlr4-runtime-testsuite</artifactId> |
| 16 |
<name>ANTLR 4 Runtime Tests (2nd generation)</name> |
| 17 |
<description>A collection of tests for ANTLR 4 Runtime libraries.</description> |
| 18 |
|
| 19 |
<prerequisites> |
| 20 |
<maven>3.0</maven> |
| 21 |
</prerequisites> |
| 22 |
|
| 23 |
<inceptionYear>2009</inceptionYear> |
| 24 |
|
| 25 |
<dependencies> |
| 26 |
<dependency> |
| 27 |
<groupId>org.antlr</groupId> |
| 28 |
<artifactId>ST4</artifactId> |
| 29 |
<version>4.3</version> |
| 30 |
<scope>test</scope> |
| 31 |
</dependency> |
| 32 |
<dependency> |
| 33 |
<groupId>org.antlr</groupId> |
| 34 |
<artifactId>antlr4</artifactId> |
| 35 |
<version>${project.version}</version> |
| 36 |
<scope>test</scope> |
| 37 |
</dependency> |
| 38 |
<dependency> |
| 39 |
<groupId>org.antlr</groupId> |
| 40 |
<artifactId>antlr4-runtime</artifactId> |
| 41 |
<version>${project.version}</version> |
| 42 |
<scope>test</scope> |
| 43 |
</dependency> |
| 44 |
<dependency> |
| 45 |
<groupId>org.antlr</groupId> |
| 46 |
<artifactId>antlr4-runtime-test-annotations</artifactId> |
| 47 |
<version>${project.version}</version> |
| 48 |
<scope>test</scope> |
| 49 |
</dependency> |
| 50 |
<dependency> |
| 51 |
<groupId>org.antlr</groupId> |
| 52 |
<artifactId>antlr4-runtime-test-annotation-processors</artifactId> |
| 53 |
<version>${project.version}</version> |
| 54 |
<scope>test</scope> |
| 55 |
</dependency> |
| 56 |
<dependency> |
| 57 |
<groupId>junit</groupId> |
| 58 |
<artifactId>junit</artifactId> |
| 59 |
<version>4.13.1</version> |
| 60 |
<scope>test</scope> |
| 61 |
</dependency> |
| 62 |
<dependency> |
| 63 |
<groupId>org.glassfish</groupId> |
| 64 |
<artifactId>javax.json</artifactId> |
| 65 |
<version>1.0.4</version> |
| 66 |
<scope>test</scope> |
| 67 |
</dependency> |
| 68 |
<dependency> |
| 69 |
<groupId>org.openjdk.jol</groupId> |
| 70 |
<artifactId>jol-core</artifactId> |
| 71 |
<version>0.8</version> |
| 72 |
</dependency> |
| 73 |
</dependencies> |
| 74 |
|
| 75 |
<build> |
| 76 |
<testSourceDirectory>test</testSourceDirectory> |
| 77 |
<resources> |
| 78 |
<resource> |
| 79 |
<directory>resources</directory> |
| 80 |
</resource> |
| 81 |
<resource> |
| 82 |
<directory>../runtime</directory> |
| 83 |
<excludes> |
| 84 |
<exclude>**/.build/**</exclude> |
| 85 |
<exclude>**/target/**</exclude> |
| 86 |
<exclude>Swift/*.xcodeproj/**</exclude> |
| 87 |
</excludes> |
| 88 |
</resource> |
| 89 |
</resources> |
| 90 |
<plugins> |
| 91 |
<plugin> |
| 92 |
<groupId>org.apache.maven.plugins</groupId> |
| 93 |
<artifactId>maven-surefire-plugin</artifactId> |
| 94 |
<version>2.19.1</version> |
| 95 |
<configuration> |
| 96 |
<!-- SUREFIRE-951: file.encoding cannot be set via systemPropertyVariables --> |
| 97 |
<argLine>-Dfile.encoding=UTF-8</argLine> |
| 98 |
<includes> |
| 99 |
<include>**/csharp/Test*.java</include> |
| 100 |
<include>**/java/Test*.java</include> |
| 101 |
<include>**/go/Test*.java</include> |
| 102 |
<include>**/javascript/Test*.java</include> |
| 103 |
<include>**/python2/Test*.java</include> |
| 104 |
<include>**/python3/Test*.java</include> |
| 105 |
<include>**/php/Test*.java</include> |
| 106 |
<include>**/dart/Test*.java</include> |
| 107 |
<include>${antlr.tests.swift}</include> |
| 108 |
</includes> |
| 109 |
</configuration> |
| 110 |
</plugin> |
| 111 |
<plugin> |
| 112 |
<groupId>org.apache.maven.plugins</groupId> |
| 113 |
<artifactId>maven-jar-plugin</artifactId> |
| 114 |
<version>2.4</version> |
| 115 |
<executions> |
| 116 |
<execution> |
| 117 |
<goals> |
| 118 |
<goal>test-jar</goal> |
| 119 |
</goals> |
| 120 |
</execution> |
| 121 |
</executions> |
| 122 |
</plugin> |
| 123 |
<plugin> |
| 124 |
<groupId>org.antlr</groupId> |
| 125 |
<artifactId>antlr4-maven-plugin</artifactId> |
| 126 |
<version>${project.version}</version> |
| 127 |
<executions> |
| 128 |
<execution> |
| 129 |
<goals> |
| 130 |
<goal>antlr4</goal> |
| 131 |
</goals> |
| 132 |
<configuration> |
| 133 |
<sourceDirectory>${basedir}/test</sourceDirectory> |
| 134 |
<outputDirectory>${project.build.directory}/generated-test-sources/antlr4</outputDirectory> |
| 135 |
<visitor>true</visitor> |
| 136 |
<generateTestSources>true</generateTestSources> |
| 137 |
</configuration> |
| 138 |
</execution> |
| 139 |
</executions> |
| 140 |
</plugin> |
| 141 |
</plugins> |
| 142 |
</build> |
| 143 |
|
| 144 |
<profiles> |
| 145 |
<profile> |
| 146 |
<id>includeSwiftTests</id> |
| 147 |
<activation> |
| 148 |
<os> |
| 149 |
<family>mac</family> |
| 150 |
</os> |
| 151 |
</activation> |
| 152 |
<properties> |
| 153 |
<antlr.tests.swift>**/swift/Test*.java</antlr.tests.swift> |
| 154 |
</properties> |
| 155 |
</profile> |
| 156 |
</profiles> |
| 157 |
</project> |