blob: 2bc4582d0cf56f0854c9d8ef26f74eab5b2d1840 [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 Benkard1d92ac82020-11-23 06:31:43 +010039 <tika.version>1.24.1</tika.version>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010040 </properties>
41
42 <dependencies>
43
44 <!-- Annotations -->
45 <dependency>
46 <groupId>pl.tlinkowski.annotation</groupId>
47 <artifactId>pl.tlinkowski.annotation.basic</artifactId>
48 <version>${basic-annotations.version}</version>
49 <scope>provided</scope>
50 </dependency>
51 <dependency>
52 <groupId>com.google.code.findbugs</groupId>
53 <artifactId>jsr305</artifactId>
54 <version>${findbugs-jsr305.version}</version>
55 <scope>provided</scope>
56 </dependency>
57 <dependency>
58 <groupId>org.jetbrains.kotlin</groupId>
59 <artifactId>kotlin-annotations-jvm</artifactId>
60 <version>${kotlin-annotations.version}</version>
61 <scope>provided</scope>
62 </dependency>
63
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010064 <!-- Command line parsing -->
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +010065 <dependency>
66 <groupId>info.picocli</groupId>
67 <artifactId>picocli</artifactId>
68 <version>${picocli.version}</version>
69 </dependency>
70
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010071 <!-- Document reading -->
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010072 <dependency>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010073 <groupId>org.apache.tika</groupId>
74 <artifactId>tika-core</artifactId>
75 <version>${tika.version}</version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010076 </dependency>
77 <dependency>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010078 <groupId>org.apache.tika</groupId>
79 <artifactId>tika-bundle</artifactId>
80 <version>${tika.version}</version>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010081 </dependency>
82 <dependency>
Matthias Andreas Benkard1d92ac82020-11-23 06:31:43 +010083 <groupId>net.sourceforge.tess4j</groupId>
84 <artifactId>tess4j</artifactId>
85 <version>4.5.1</version>
86 <exclusions>
87 <exclusion>
88 <groupId>org.slf4j</groupId>
89 <artifactId>jcl-over-slf4j</artifactId>
90 </exclusion>
91 <exclusion>
92 <groupId>org.slf4j</groupId>
93 <artifactId>log4j-over-slf4j</artifactId>
94 </exclusion>
95 </exclusions>
Matthias Andreas Benkard31a2c502020-11-22 14:36:27 +010096 </dependency>
97
98 <!-- Terminal output -->
99 <dependency>
100 <groupId>io.github.dgroup</groupId>
101 <artifactId>term4j</artifactId>
102 <version>${term4j.version}</version>
103 </dependency>
104 <dependency>
105 <groupId>com.googlecode.lanterna</groupId>
106 <artifactId>lanterna</artifactId>
107 <version>${lanterna.version}</version>
108 </dependency>
109
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100110 </dependencies>
111
112 <build>
113
114 <pluginManagement>
115 <plugins>
116
117 <plugin>
118 <groupId>org.codehaus.mojo</groupId>
119 <artifactId>versions-maven-plugin</artifactId>
120 <configuration>
121 <generateBackupPoms>false</generateBackupPoms>
122 </configuration>
123 </plugin>
124
125 </plugins>
126 </pluginManagement>
127
128 <plugins>
129
130 <!-- Compiler -->
131 <plugin>
132 <artifactId>maven-compiler-plugin</artifactId>
133 <version>${compiler-plugin.version}</version>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100134 <configuration>
135 <annotationProcessorPaths>
136 <path>
137 <groupId>info.picocli</groupId>
138 <artifactId>picocli-codegen</artifactId>
139 <version>${picocli.version}</version>
140 </path>
141 </annotationProcessorPaths>
142 <compilerArgs>
143 <arg>-Aproject=${project.groupId}/${project.artifactId}</arg>
144 </compilerArgs>
145 </configuration>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100146 </plugin>
147
148 <!-- Resources -->
149 <plugin>
150 <artifactId>maven-resources-plugin</artifactId>
151 <version>${resources-plugin.version}</version>
152 </plugin>
153
154 <!-- Google Java Code Formatter, for enforcing style conventions -->
155 <plugin>
156 <groupId>com.diffplug.spotless</groupId>
157 <artifactId>spotless-maven-plugin</artifactId>
158 <version>${spotless-plugin.version}</version>
159 <configuration>
160 <java>
161 <removeUnusedImports/>
162 <importOrder>
163 <order>java,javax,org,com,de,io,dagger,eu.mulk,</order>
164 </importOrder>
165 <googleJavaFormat>
166 <version>${google.java.format.version}</version>
167 <style>GOOGLE</style>
168 </googleJavaFormat>
169 </java>
170 </configuration>
171 </plugin>
172
173 <plugin>
174 <artifactId>maven-antrun-plugin</artifactId>
175 <version>${antrun-plugin.version}</version>
176 </plugin>
177
178 <plugin>
179 <groupId>org.apache.maven.plugins</groupId>
180 <artifactId>maven-enforcer-plugin</artifactId>
181 <version>${enforcer-plugin.version}</version>
182 <executions>
183 <execution>
184 <id>enforce-maven</id>
185 <goals>
186 <goal>enforce</goal>
187 </goals>
188 <configuration>
189 <rules>
190 <requireMavenVersion>
191 <version>${enforced.maven-version}</version>
192 </requireMavenVersion>
193 </rules>
194 </configuration>
195 </execution>
196 </executions>
197 </plugin>
198
199 <plugin>
200 <groupId>org.codehaus.mojo</groupId>
201 <artifactId>exec-maven-plugin</artifactId>
202 <version>${exec-plugin.version}</version>
203 <configuration>
204 <mainClass>eu.mulk.aendggner.AendGgner</mainClass>
205 </configuration>
206 </plugin>
207
208 <plugin>
209 <groupId>org.apache.maven.plugins</groupId>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100210 <artifactId>maven-dependency-plugin</artifactId>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100211 <executions>
212 <execution>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100213 <id>copy-dependencies</id>
214 <phase>prepare-package</phase>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100215 <goals>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100216 <goal>copy-dependencies</goal>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100217 </goals>
218 <configuration>
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100219 <outputDirectory>
220 ${project.build.directory}/libs
221 </outputDirectory>
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100222 </configuration>
223 </execution>
224 </executions>
225 </plugin>
226
Matthias Andreas Benkardc7f11362020-11-22 15:01:07 +0100227 <plugin>
228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-jar-plugin</artifactId>
230 <version>3.2.0</version>
231 <configuration>
232 <archive>
233 <manifest>
234 <addClasspath>true</addClasspath>
235 <classpathPrefix>libs/</classpathPrefix>
236 <mainClass>
237 eu.mulk.aendggner.AendGgner
238 </mainClass>
239 </manifest>
240 </archive>
241 </configuration>
242 </plugin>
243
Matthias Andreas Benkardb291c362020-11-22 10:22:27 +0100244 </plugins>
245
246 </build>
247
248</project>