-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
173 lines (173 loc) · 5.91 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?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">
<name>Data Language Core</name>
<description>This is the core library for using the Data Language DL. See https://github.com/studio42gmbh/dl</description>
<modelVersion>4.0.0</modelVersion>
<groupId>de.s42</groupId>
<artifactId>dl</artifactId>
<version>1.0.4-DEV</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.release>17</maven.compiler.release>
</properties>
<dependencies>
<dependency>
<!-- Logging -->
<!-- https://github.com/studio42gmbh/log42 -->
<groupId>de.s42</groupId>
<artifactId>log42</artifactId>
<version>1.0.4-DEV</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- ANTLR is a powerful parser generator for reading, processing, executing, or translating structured text or binary files. -->
<!-- https://github.com/antlr/antlr4/blob/master/doc/index.md -->
<groupId>org.antlr</groupId>
<artifactId>antlr4-runtime</artifactId>
<version>4.13.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<!-- Unit testing -->
<!-- https://testng.org/ -->
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.10.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub studio42 GmbH Apache Maven Packages</name>
<url>https://maven.pkg.github.com/studio42gmbh/dl</url>
</repository>
</distributionManagement>
<build>
<plugins>
<plugin>
<!-- https://www.antlr.org/api/maven-plugin/latest/index.html -->
<groupId>org.antlr</groupId>
<artifactId>antlr4-maven-plugin</artifactId>
<version>4.13.1</version>
<executions>
<execution>
<goals>
<goal>antlr4</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-antrun-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<phase>generate-resources</phase>
<configuration>
<target>
<exec executable="git" outputproperty="git.revision" failifexecutionfails="false" errorproperty="">
<arg value="describe"/>
<arg value="--tags"/>
<arg value="--always"/>
<arg value="--abbrev=11"/>
<arg value="HEAD"/>
</exec>
<property name="versionFile" value="${project.basedir}/src/main/resources/de/s42/dl/${project.artifactId}.version"/>
<property name="fullVersion" value="${project.version} #${git.revision} ${maven.build.timestamp}"/>
<echo file="${versionFile}">${fullVersion}</echo>
<echo>New version is ${fullVersion}</echo>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://maven.apache.org/surefire/maven-surefire-plugin/examples/testng.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<!-- https://stackoverflow.com/questions/64688896/how-to-make-testng-print-detail-message-about-the-failure -->
<trimStackTrace>false</trimStackTrace>
<argLine>--add-modules de.sft.dl -Dfile.encoding=UTF-8</argLine>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-compiler-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<!--showDeprecation>true</showDeprecation//-->
<compilerArgs>
<arg>-deprecation</arg>
<!--arg>-Xlint:unchecked</arg//-->
</compilerArgs>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-dependency-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.7.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/libs
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-jar-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs/</classpathPrefix>
</manifest>
<manifestEntries>
<Automatic-Module-Name>de.sft.dl</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-javadoc-plugin/aggregate-mojo.html -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<outputDirectory>${project.basedir}/docs</outputDirectory>
<reportOutputDirectory>${project.basedir}/docs</reportOutputDirectory>
<destDir>javadoc</destDir>
<show>private</show>
</configuration>
</plugin>
<plugin>
<!-- https://maven.apache.org/plugins/maven-install-plugin/ -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.2</version>
</plugin>
</plugins>
</build>
</project>