blob: e58f095336e9ba49ba2beae253f23d9735babc84 [file] [log] [blame]
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +01001<?xml version="1.0"?>
2<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
5 <modelVersion>4.0.0</modelVersion>
6
7 <groupId>eu.mulk</groupId>
8 <artifactId>aendggner</artifactId>
9 <version>${revision}</version>
10
11 <properties>
12 <maven.compiler.parameters>true</maven.compiler.parameters>
13 <maven.compiler.source>15</maven.compiler.source>
14 <maven.compiler.target>15</maven.compiler.target>
15
16 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
18
19 <enforced.maven-version>3.6.2</enforced.maven-version>
20
21 <antrun-plugin.version>3.0.0</antrun-plugin.version>
22 <compiler-plugin.version>3.8.1</compiler-plugin.version>
23 <enforcer-plugin.version>3.0.0-M3</enforcer-plugin.version>
24 <exec-plugin.version>3.0.0</exec-plugin.version>
25 <processor-plugin.version>4.2</processor-plugin.version>
26 <resources-plugin.version>3.2.0</resources-plugin.version>
27 <shade-plugin.version>3.2.4</shade-plugin.version>
28 <spotless-plugin.version>2.4.1</spotless-plugin.version>
29
30 <basic-annotations.version>0.2.0</basic-annotations.version>
31 <findbugs-jsr305.version>3.0.2</findbugs-jsr305.version>
32 <google.java.format.version>1.8</google.java.format.version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010033 <itext7.version>7.1.13</itext7.version>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010034 <kotlin-annotations.version>1.4.10</kotlin-annotations.version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010035 <lanterna.version>3.0.4</lanterna.version>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010036 <picocli.version>4.3.2</picocli.version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010037 <pdfocr.version>1.0.2</pdfocr.version>
38 <term4j.version>0.4.0</term4j.version>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010039 </properties>
40
41 <dependencies>
42
43 <!-- Annotations -->
44 <dependency>
45 <groupId>pl.tlinkowski.annotation</groupId>
46 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
47 <version>${basic-annotations.version}</version>
48 <scope>provided</scope>
49 </dependency>
50 <dependency>
51 <groupId>com.google.code.findbugs</groupId>
52 <artifactId>jsr305</artifactId>
53 <version>${findbugs-jsr305.version}</version>
54 <scope>provided</scope>
55 </dependency>
56 <dependency>
57 <groupId>org.jetbrains.kotlin</groupId>
58 <artifactId>kotlin-annotations-jvm</artifactId>
59 <version>${kotlin-annotations.version}</version>
60 <scope>provided</scope>
61 </dependency>
62
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010063 <!-- Command line parsing -->
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010064 <dependency>
65 <groupId>info.picocli</groupId>
66 <artifactId>picocli</artifactId>
67 <version>${picocli.version}</version>
68 </dependency>
69
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010070 <!-- PDF manipulation -->
71 <dependency>
72 <groupId>com.itextpdf</groupId>
73 <artifactId>itext7-core</artifactId>
74 <version>${itext7.version}</version>
75 <type>pom</type>
76 </dependency>
77 <dependency>
78 <groupId>com.itextpdf</groupId>
79 <artifactId>pdfocr-root</artifactId>
80 <version>${pdfocr.version}</version>
81 <type>pom</type>
82 </dependency>
83 <dependency>
84 <groupId>com.itextpdf</groupId>
85 <artifactId>pdfocr-api</artifactId>
86 <version>${pdfocr.version}</version>
87 </dependency>
88 <dependency>
89 <groupId>com.itextpdf</groupId>
90 <artifactId>pdfocr-tesseract4</artifactId>
91 <version>${pdfocr.version}</version>
92 </dependency>
93
94 <!-- Terminal output -->
95 <dependency>
96 <groupId>io.github.dgroup</groupId>
97 <artifactId>term4j</artifactId>
98 <version>${term4j.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>com.googlecode.lanterna</groupId>
102 <artifactId>lanterna</artifactId>
103 <version>${lanterna.version}</version>
104 </dependency>
105
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100106 </dependencies>
107
108 <build>
109
110 <pluginManagement>
111 <plugins>
112
113 <plugin>
114 <groupId>org.codehaus.mojo</groupId>
115 <artifactId>versions-maven-plugin</artifactId>
116 <configuration>
117 <generateBackupPoms>false</generateBackupPoms>
118 </configuration>
119 </plugin>
120
121 </plugins>
122 </pluginManagement>
123
124 <plugins>
125
126 <!-- Compiler -->
127 <plugin>
128 <artifactId>maven-compiler-plugin</artifactId>
129 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100130 <configuration>
131 <annotationProcessorPaths>
132 <path>
133 <groupId>info.picocli</groupId>
134 <artifactId>picocli-codegen</artifactId>
135 <version>${picocli.version}</version>
136 </path>
137 </annotationProcessorPaths>
138 <compilerArgs>
139 <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
140 </compilerArgs>
141 </configuration>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100142 </plugin>
143
144 <!-- Resources -->
145 <plugin>
146 <artifactId>maven-resources-plugin</artifactId>
147 <version>${resources-plugin.version}</version>
148 </plugin>
149
150 <!-- Google Java Code Formatter, for enforcing style conventions -->
151 <plugin>
152 <groupId>com.diffplug.spotless</groupId>
153 <artifactId>spotless-maven-plugin</artifactId>
154 <version>${spotless-plugin.version}</version>
155 <configuration>
156 <java>
157 <removeUnusedImports/>
158 <importOrder>
159 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
160 </importOrder>
161 <googleJavaFormat>
162 <version>${google.java.format.version}</version>
163 <style>GOOGLE</style>
164 </googleJavaFormat>
165 </java>
166 </configuration>
167 </plugin>
168
169 <plugin>
170 <artifactId>maven-antrun-plugin</artifactId>
171 <version>${antrun-plugin.version}</version>
172 </plugin>
173
174 <plugin>
175 <groupId>org.apache.maven.plugins</groupId>
176 <artifactId>maven-enforcer-plugin</artifactId>
177 <version>${enforcer-plugin.version}</version>
178 <executions>
179 <execution>
180 <id>enforce-maven</id>
181 <goals>
182 <goal>enforce</goal>
183 </goals>
184 <configuration>
185 <rules>
186 <requireMavenVersion>
187 <version>${enforced.maven-version}</version>
188 </requireMavenVersion>
189 </rules>
190 </configuration>
191 </execution>
192 </executions>
193 </plugin>
194
195 <plugin>
196 <groupId>org.codehaus.mojo</groupId>
197 <artifactId>exec-maven-plugin</artifactId>
198 <version>${exec-plugin.version}</version>
199 <configuration>
200 <mainClass>eu.mulk.aendggner.AendGgner</mainClass>
201 </configuration>
202 </plugin>
203
204 <plugin>
205 <groupId>org.apache.maven.plugins</groupId>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100206 <artifactId>maven-dependency-plugin</artifactId>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100207 <executions>
208 <execution>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100209 <id>copy-dependencies</id>
210 <phase>prepare-package</phase>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100211 <goals>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100212 <goal>copy-dependencies</goal>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100213 </goals>
214 <configuration>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100215 <outputDirectory>
216 ${project.build.directory}/libs
217 </outputDirectory>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100218 </configuration>
219 </execution>
220 </executions>
221 </plugin>
222
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100223 <plugin>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-jar-plugin</artifactId>
226 <version>3.2.0</version>
227 <configuration>
228 <archive>
229 <manifest>
230 <addClasspath>true</addClasspath>
231 <classpathPrefix>libs/</classpathPrefix>
232 <mainClass>
233 eu.mulk.aendggner.AendGgner
234 </mainClass>
235 </manifest>
236 </archive>
237 </configuration>
238 </plugin>
239
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100240 </plugins>
241
242 </build>
243
244</project>