Changeset 7231


Ignore:
Timestamp:
12/15/21 20:23:03 (2 years ago)
Author:
Oliver Schonefeld
Message:
  • bump ANTLR to 4.9.3
  • dump dependencies
  • cleanup pom.xml
Location:
FCS-QL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCS-QL/trunk/pom.xml

    r6866 r7231  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <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">
    3   <modelVersion>4.0.0</modelVersion>
    4   <groupId>eu.clarin.sru.fcs</groupId>
    5   <artifactId>fcs-ql</artifactId>
    6   <version>0.1-SNAPSHOT</version>
    7   <packaging>jar</packaging>
    8   <name>fcs-ql</name>
    9   <properties>
    10     <antlr.version>4.5.1-1</antlr.version>
    11     <antlr4.visitor>true</antlr4.visitor>
    12     <slf4j.version>1.7.12</slf4j.version>
    13     <!-- project settings -->
    14     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    15     <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    16     <!-- plug-in settings -->
    17     <maven.compiler.source>1.6</maven.compiler.source>
    18     <maven.compiler.target>1.6</maven.compiler.target>
    19   </properties>
    20   <description>FCS Core 2.0 Query Language grammar parser.</description>
    21   <organization>
    22     <name>CLARIN ERIC</name>
    23     <url>http://clarin.eu/</url>
    24   </organization>
    25   <licenses>
    26     <license>
    27       <name>GNU General Public License</name>
    28       <url>http://www.gnu.org/licenses/gpl.txt</url>
    29       <distribution>repo</distribution>
    30     </license>
    31   </licenses>
    32   <scm>
    33     <connection>scm:svn:https://svn.clarin.eu/browser/FCS-QL</connection>
    34     <developerConnection>scm:svn:https://svn.clarin.eu/FCS-QL</developerConnection>
    35     <url>https://svn.clarin.eu/FCS-QL</url>
    36   </scm>
    37   <developers>
    38     <developer>
    39       <id>ljo</id>
    40       <name>Leif-Jöran Olsson</name>
    41       <organization>SprÃ¥kbanken</organization>
    42       <url>http://spraakbanken.gu.se/</url>
    43     </developer>
    44   </developers>
    45   <dependencies>
    46     <!--dependency>
    47       <groupId>org.antlr</groupId>
    48       <artifactId>antlr4-runtime</artifactId>
    49       <version>${antlr.version}</version>
    50       <type>jar</type>
    51       <scope>compile</scope>
    52     </dependency-->
    53     <!--dependency>
    54       <groupId>org.antlr</groupId>
    55       <artifactId>antlr4</artifactId>
    56       <version>${antlr.version}</version>
    57     </dependency-->
    58     <dependency>
    59       <groupId>org.antlr</groupId>
    60       <artifactId>antlr4-runtime</artifactId>
    61       <version>${antlr.version}</version>
    62     </dependency>
    63     <dependency>
    64       <groupId>org.slf4j</groupId>
    65       <artifactId>slf4j-api</artifactId>
    66       <version>${slf4j.version}</version>
    67     </dependency>
    68     <dependency>
    69       <groupId>org.slf4j</groupId>
    70       <artifactId>slf4j-log4j12</artifactId>
    71       <version>${slf4j.version}</version>
    72       <scope>test</scope>
    73     </dependency>
    74     <dependency>
    75       <groupId>junit</groupId>
    76       <artifactId>junit</artifactId>
    77       <version>4.8.1</version>
    78       <scope>test</scope>
    79     </dependency>
    80     <dependency>
    81       <groupId>org.apache.maven.plugin-testing</groupId>
    82       <artifactId>maven-plugin-testing-harness</artifactId>
    83       <version>3.3.0</version>
    84       <scope>test</scope>
    85     </dependency>
    86   </dependencies>
    87   <build>
    88     <plugins>
    89       <plugin>
    90         <artifactId>maven-jar-plugin</artifactId>
    91         <version>2.4</version>
    92       </plugin>
    93       <plugin>
    94         <artifactId>maven-assembly-plugin</artifactId>
    95         <configuration>
    96           <descriptorRefs>
    97             <descriptorRef>jar-with-dependencies</descriptorRef>
    98           </descriptorRefs>
    99           <!-- outputDirectory>java/lib</outputDirectory -->
    100         </configuration>
    101         <executions>
    102           <execution>
    103             <id>make-fcs-ql-jar-with-dependencies</id>
    104             <phase>package</phase>
    105             <goals>
    106               <goal>single</goal>
    107             </goals>
    108           </execution>
    109         </executions>
    110       </plugin>
    111       <plugin>
    112         <groupId>org.antlr</groupId>
    113         <artifactId>antlr4-maven-plugin</artifactId>
    114         <version>${antlr.version}</version>
    115         <executions>
    116           <execution>
    117             <phase>compile</phase>
    118             <goals>
    119               <goal>antlr4</goal>
    120             </goals>
    121           </execution>
    122         </executions>
    123       </plugin>
    124       <plugin>
    125         <groupId>org.codehaus.mojo</groupId>
    126         <artifactId>build-helper-maven-plugin</artifactId>
    127         <version>1.9.1</version>
    128         <executions>
    129           <execution>
    130             <phase>generate-sources</phase>
    131             <goals>
    132               <goal>add-source</goal>
    133             </goals>
    134             <configuration>
    135               <sources>
    136                 <source>${project.build.directory}/generated-sources/antlr4</source>
    137                 <source>${project.build.sourceDirectory}</source>
    138               </sources>
    139             </configuration>
    140           </execution>
    141           <execution>
    142             <id>add-test-sources</id>
    143             <phase>generate-test-sources</phase>
    144             <goals>
    145               <goal>add-test-source</goal>
    146             </goals>
    147             <configuration>
    148               <sources>
    149                 <source>${project.build.directory}/generated-resources/antlr4</source>
    150               </sources>
    151             </configuration>
    152           </execution>
    153         </executions>
    154       </plugin>
    155       <!--plugin>
    156         <groupId>org.apache.maven.plugins</groupId>
    157         <artifactId>maven-compiler-plugin</artifactId>
    158         <version>3.3</version>
    159         <configuration>
    160           <source>1.7</source>
    161           <target>1.7</target>
    162           <encoding>UTF-8</encoding>
    163           <includes>
    164             <include>${project.basedir}/target/generated-sources/antlr4/**</include>
    165             <include>${project.build.sourceDirectory}</include>
    166           </includes>
    167           <verbose>true</verbose>
    168         </configuration>
    169       </plugin-->
    170       <plugin>
    171         <groupId>org.apache.maven.plugins</groupId>
    172         <artifactId>maven-resources-plugin</artifactId>
    173         <version>2.5</version>
    174         <executions>
    175           <execution>
    176             <id>copy-fcs-ql-parser</id>
    177             <phase>prepare-package</phase>
    178             <goals>
    179               <goal>copy-resources</goal>
    180             </goals>
    181             <configuration>
    182               <resources>
    183                 <resource>
    184                   <directory>target/generated-sources/antlr4</directory>
    185                 </resource>
    186               </resources>
    187               <outputDirectory>${project.build.outputDirectory}</outputDirectory>
    188             </configuration>
    189           </execution>
    190         </executions>
    191       </plugin>
    192     </plugins>
    193   </build>
     2<project xmlns="http://maven.apache.org/POM/4.0.0"
     3    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     4    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     5    <modelVersion>4.0.0</modelVersion>
     6    <groupId>eu.clarin.sru.fcs</groupId>
     7    <artifactId>fcs-ql</artifactId>
     8    <version>0.2-SNAPSHOT</version>
     9    <packaging>jar</packaging>
     10    <name>fcs-ql</name>
     11    <description>FCS Core 2.0 Query Language grammar parser.</description>
     12
     13    <properties>
     14        <!-- project settings -->
     15        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     16        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
     17        <!-- plug-in settings -->
     18        <maven.compiler.source>1.8</maven.compiler.source>
     19        <maven.compiler.target>1.8</maven.compiler.target>
     20        <!-- versions and settings of common dependencies -->
     21        <antlr.version>4.9.3</antlr.version>
     22        <antlr4.visitor>true</antlr4.visitor>
     23      <slf4j.version>1.7.32</slf4j.version>
     24    </properties>
     25
     26    <organization>
     27        <name>CLARIN ERIC</name>
     28        <url>http://clarin.eu/</url>
     29    </organization>
     30
     31    <licenses>
     32        <license>
     33          <name>GNU General Public License</name>
     34          <url>http://www.gnu.org/licenses/gpl.txt</url>
     35          <distribution>repo</distribution>
     36        </license>
     37    </licenses>
     38   
     39    <scm>
     40        <connection>scm:svn:https://svn.clarin.eu/browser/FCS-QL</connection>
     41        <developerConnection>scm:svn:https://svn.clarin.eu/FCS-QL</developerConnection>
     42        <url>https://svn.clarin.eu/FCS-QL</url>
     43    </scm>
     44
     45    <developers>
     46        <developer>
     47            <id>ljo</id>
     48            <name>Leif-Jöran Olsson</name>
     49            <organization>SprÃ¥kbanken</organization>
     50            <url>http://spraakbanken.gu.se/</url>
     51        </developer>
     52    </developers>
     53
     54    <dependencies>
     55        <dependency>
     56            <groupId>org.antlr</groupId>
     57            <artifactId>antlr4-runtime</artifactId>
     58            <version>${antlr.version}</version>
     59        </dependency>
     60
     61        <dependency>
     62            <groupId>org.slf4j</groupId>
     63            <artifactId>slf4j-api</artifactId>
     64            <version>${slf4j.version}</version>
     65        </dependency>
     66
     67        <dependency>
     68            <groupId>org.slf4j</groupId>
     69            <artifactId>slf4j-log4j12</artifactId>
     70            <version>${slf4j.version}</version>
     71            <scope>test</scope>
     72        </dependency>
     73
     74        <dependency>
     75            <groupId>junit</groupId>
     76            <artifactId>junit</artifactId>
     77            <version>4.13.2</version>
     78            <scope>test</scope>
     79        </dependency>
     80
     81       <dependency>
     82           <groupId>org.apache.maven.plugin-testing</groupId>
     83           <artifactId>maven-plugin-testing-harness</artifactId>
     84           <version>3.3.0</version>
     85           <scope>test</scope>
     86        </dependency>
     87    </dependencies>
     88
     89    <build>
     90        <plugins>
     91            <plugin>
     92                    <artifactId>maven-jar-plugin</artifactId>
     93                    <version>3.2.0</version>
     94            </plugin>
     95
     96            <plugin>
     97                    <artifactId>maven-assembly-plugin</artifactId>
     98                    <configuration>
     99                      <descriptorRefs>
     100                        <descriptorRef>jar-with-dependencies</descriptorRef>
     101                      </descriptorRefs>
     102                      <!-- outputDirectory>java/lib</outputDirectory -->
     103                    </configuration>
     104                    <executions>
     105                      <execution>
     106                        <id>make-fcs-ql-jar-with-dependencies</id>
     107                        <phase>package</phase>
     108                        <goals>
     109                            <goal>single</goal>
     110                        </goals>
     111                      </execution>
     112                    </executions>
     113            </plugin>
     114
     115            <plugin>
     116                <groupId>org.antlr</groupId>
     117                    <artifactId>antlr4-maven-plugin</artifactId>
     118                    <version>${antlr.version}</version>
     119                    <executions>
     120                        <execution>
     121                        <goals>
     122                            <goal>antlr4</goal>
     123                            </goals>
     124                        </execution>
     125                    </executions>
     126            </plugin>
     127
     128            <plugin>
     129                <groupId>org.apache.maven.plugins</groupId>
     130                <artifactId>maven-compiler-plugin</artifactId>
     131                <version>3.8.1</version>
     132                <configuration>
     133                    <source>${maven.compiler.source}</source>
     134                    <target>${maven.compiler.target}</target>
     135                </configuration>
     136            </plugin>
     137
     138            <plugin>
     139                <groupId>org.apache.maven.plugins</groupId>
     140                <artifactId>maven-javadoc-plugin</artifactId>
     141                <version>3.3.1</version>
     142                <executions>
     143                    <execution>
     144                        <id>attach-javadoc</id>
     145                        <goals>
     146                            <goal>jar</goal>
     147                        </goals>
     148                    </execution>
     149                </executions>
     150            </plugin>
     151
     152            <plugin>
     153                <groupId>org.apache.maven.plugins</groupId>
     154                <artifactId>maven-source-plugin</artifactId>
     155                <version>3.2.1</version>
     156                <executions>
     157                    <execution>
     158                        <id>attach-source</id>
     159                        <goals>
     160                            <goal>jar-no-fork</goal>
     161                        </goals>
     162                    </execution>
     163                </executions>
     164            </plugin>
     165        </plugins>
     166    </build>
    194167</project>
  • FCS-QL/trunk/src/test/java/eu/clarin/sru/fcs/qlparser/FCSTest.java

    r6801 r7231  
    2121            is = new FileInputStream(inputFile);
    2222        }
    23         ANTLRInputStream input = new ANTLRInputStream(is);
     23        CharStream input = CharStreams.fromStream(is);
    2424        FCSLexer lexer = new FCSLexer(input);
    2525        CommonTokenStream tokens = new CommonTokenStream(lexer);
Note: See TracChangeset for help on using the changeset viewer.