This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
forked from evansiroky/maven-semantic-release-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
296 lines (288 loc) · 12.8 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.evansiroky</groupId>
<artifactId>maven-semantic-release-example</artifactId>
<packaging>jar</packaging>
<version>SNAPSHOT</version>
<name>maven-semantic-release-example</name>
<description>Example project to auto-deploy maven projects</description>
<url>https://github.com/evansiroky/maven-semantic-release-example</url>
<inceptionYear>2022</inceptionYear>
<properties>
<java.version>11</java.version>
<maven.version>3.8.4</maven.version>
<encoding>UTF-8</encoding>
<!--==========================================-->
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${encoding}</project.reporting.outputEncoding>
<!--==========================================-->
<plugin.enforcer.version>3.1.0</plugin.enforcer.version>
<!-- license -->
<plugin.license.version>4.1</plugin.license.version>
<license.header>.github/LICENSE_HEADER.txt</license.header>
<license.strictCheck>true</license.strictCheck>
</properties>
<licenses>
<license>
<name>MIT</name>
<url>https://opensource.org/licenses/MIT</url>
</license>
</licenses>
<developers>
<developer>
<name>Evan Siroky</name>
<email>evan.siroky@yahoo.com</email>
<organization>Conveyal</organization>
<organizationUrl>https://conveyal.com/</organizationUrl>
</developer>
<developer>
<name>Alex Zima</name>
<email>xzima@ro.ru</email>
</developer>
</developers>
<!-- Define where the source code for this project lives -->
<scm>
<connection>scm:git:https://github.com/xzima/maven-semantic-release-example.git</connection>
<developerConnection>scm:git:https://github.com/xzima/maven-semantic-release-example.git</developerConnection>
<url>https://github.com/xzima/maven-semantic-release-example</url>
</scm>
<repositories>
<repository>
<id>sonatype-oss</id>
<name>Sonatype OSS</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<!-- https://maven.apache.org/enforcer/enforcer-rules -->
<!-- https://blogs.oracle.com/developers/post/mastering-maven-the-enforcer-plugin -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>${plugin.enforcer.version}</version>
<configuration>
<rules>
<requireJavaVersion>
<version>${java.version}</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[${maven.version},)</version>
</requireMavenVersion>
<bannedDependencies>
<excludes>
<exclude>log4j:log4j</exclude>
</excludes>
</bannedDependencies>
<dependencyConvergence/>
<banDuplicatePomDependencyVersions/>
</rules>
</configuration>
<executions>
<execution>
<id>enforce</id>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Allow attaching Javadoc during releases -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.1</version>
<configuration>
<source>11</source>
<detectJavaApiLink>false</detectJavaApiLink>
<!-- Turn off Java 8 strict Javadoc checking -->
<doclint>none</doclint>
<tags>
<tag>
<name>notnull</name>
<placement>a</placement>
<head>Not null</head>
</tag>
<tag>
<name>default</name>
<placement>a</placement>
<head>Default:</head>
</tag>
</tags>
</configuration>
<executions>
<!-- Compress Javadoc into JAR and include that JAR when deploying. -->
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Include zipped source code in releases -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- This plugin calculates code coverage and generates a report during the test phase in maven.
It is optional in the workflow of deploying with maven-semantic-release.
-->
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- https://mycila.carbou.me/license-maven-plugin/ -->
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${plugin.license.version}</version>
<dependencies>
<dependency>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin-git</artifactId>
<!-- make sure you use the same version as license-maven-plugin -->
<version>${plugin.license.version}</version>
</dependency>
</dependencies>
<configuration>
<mapping>
<kt>JAVADOC_STYLE</kt>
<kts>JAVADOC_STYLE</kts>
</mapping>
<excludes>
<exclude>docs/**</exclude>
<exclude>**/.okhttpcache/**</exclude>
<exclude>**/.run/**</exclude>
<exclude>**/src/test/resources/**</exclude>
<exclude>**/src/test/data/**</exclude>
<exclude>**/src/main/license/**</exclude>
<exclude>**/src/main/changelog/**</exclude>
<exclude>pom.xml</exclude>
<exclude>system.properties</exclude>
<exclude>Procfile</exclude>
<exclude>*.db</exclude>
<exclude>**/META-INF/**</exclude>
<exclude>**/robots.txt</exclude>
<exclude>**/LICENSE*</exclude>
<exclude>**/README*</exclude>
<exclude>**/readme*</exclude>
<exclude>**/.gitignore</exclude>
<exclude>**/*.cfg</exclude>
<exclude>**/*.conf</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<!-- https://www.mojohaus.org/license-maven-plugin/ -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.0.0</version>
<configuration>
<excludedScopes>test</excludedScopes>
<includeOptional>false</includeOptional>
<outputDirectory>${project.basedir}</outputDirectory>
<thirdPartyFilename>LICENSES_THIRD_PARTY.txt</thirdPartyFilename>
<!-- For Licenses which are "Unknown" by Maven, load them from a properties file -->
<useMissingFile>true</useMissingFile>
<missingFile>.github/LICENSES_THIRD_PARTY.properties</missingFile>
<!-- License names that should all be merged into the *first* listed name -->
<licenseMergesFile>.github/LICENSE_MERGES.txt</licenseMergesFile>
<!-- Use the template which groups all dependencies by their License type (easier to read!). -->
<!-- SEE: https://github.com/mojohaus/license-maven-plugin/tree/master/src/main/resources/org/codehaus/mojo/license -->
<fileTemplate>.github/LICENSES_THIRD_PARTY_groupByLicense.ftl</fileTemplate>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>3.3.0</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>${project.basedir}</directory>
<includes>
<include>LICENSES_THIRD_PARTY.txt</include>
<include>LICENSE.txt</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- JUnit is a Java testing framework.
It is optional in the workflow of deploying with maven-semantic-release. -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-server-cio</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.ktor</groupId>
<artifactId>ktor-bom</artifactId>
<version>2.1.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-bom</artifactId>
<version>1.7.20</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
</project>