Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit e8c14b2

Browse files
committed
Cleanup pom
Add release profile + plugins
1 parent 953b69d commit e8c14b2

File tree

1 file changed

+176
-71
lines changed

1 file changed

+176
-71
lines changed

pom.xml

Lines changed: 176 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,181 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<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>com.oneandone</groupId>
5-
<artifactId>gameoflife</artifactId>
6-
<version>1.0.0-SNAPSHOT</version>
7-
<name>Game of Life</name>
8-
<packaging>jar</packaging>
9-
<properties>
10-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11-
<maven.compiler.source>11</maven.compiler.source>
12-
<maven.compiler.target>11</maven.compiler.target>
13-
</properties>
14-
<dependencies>
15-
<dependency>
16-
<groupId>org.slf4j</groupId>
17-
<artifactId>slf4j-api</artifactId>
18-
<version>2.0.6</version>
19-
</dependency>
20-
<dependency>
21-
<groupId>org.slf4j</groupId>
22-
<artifactId>slf4j-log4j12</artifactId>
23-
<version>2.0.6</version>
24-
</dependency>
25-
<dependency>
26-
<groupId>org.slf4j</groupId>
27-
<artifactId>slf4j-ext</artifactId>
28-
<version>2.0.6</version>
29-
</dependency>
30-
<dependency>
31-
<groupId>args4j</groupId>
32-
<artifactId>args4j</artifactId>
33-
<version>2.33</version>
34-
</dependency>
35-
<dependency>
36-
<groupId>org.projectlombok</groupId>
37-
<artifactId>lombok</artifactId>
38-
<version>1.18.24</version>
39-
<scope>provided</scope>
40-
</dependency>
41-
<dependency>
42-
<groupId>junit</groupId>
43-
<artifactId>junit</artifactId>
44-
<version>4.13.2</version>
45-
</dependency>
46-
</dependencies>
47-
<build>
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.oneandone</groupId>
5+
<artifactId>gameoflife</artifactId>
6+
<version>1.0.0-SNAPSHOT</version>
7+
<name>Game of Life</name>
8+
<description>Game of Life swing GUI</description>
9+
<packaging>jar</packaging>
10+
<url>https://github.com/1and1/game-of-life</url>
11+
<organization>
12+
<name>IONOS SE</name>
13+
<url>http://www.ionos.com/</url>
14+
</organization>
15+
<licenses>
16+
<license>
17+
<name>The Apache Software License, Version 2.0</name>
18+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
<distribution>repo</distribution>
20+
</license>
21+
</licenses>
22+
<developers>
23+
<developer>
24+
<id>sfuhrm</id>
25+
<name>Stephan Fuhrmann</name>
26+
</developer>
27+
</developers>
28+
<scm>
29+
<url>https://github.com/1and1/game-of-life.git</url>
30+
<connection>scm:git:git@github.com:1and1/game-of-life.git</connection>
31+
<developerConnection>scm:git:git@github.com:1and1/game-of-life.git</developerConnection>
32+
<tag>HEAD</tag>
33+
</scm>
34+
<properties>
35+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36+
<maven.compiler.source>11</maven.compiler.source>
37+
<maven.compiler.target>11</maven.compiler.target>
38+
</properties>
39+
<dependencies>
40+
<dependency>
41+
<groupId>org.slf4j</groupId>
42+
<artifactId>slf4j-api</artifactId>
43+
<version>2.0.6</version>
44+
</dependency>
45+
<dependency>
46+
<groupId>org.slf4j</groupId>
47+
<artifactId>slf4j-log4j12</artifactId>
48+
<version>2.0.6</version>
49+
</dependency>
50+
<dependency>
51+
<groupId>org.slf4j</groupId>
52+
<artifactId>slf4j-ext</artifactId>
53+
<version>2.0.6</version>
54+
</dependency>
55+
<dependency>
56+
<groupId>args4j</groupId>
57+
<artifactId>args4j</artifactId>
58+
<version>2.33</version>
59+
</dependency>
60+
<dependency>
61+
<groupId>org.projectlombok</groupId>
62+
<artifactId>lombok</artifactId>
63+
<version>1.18.24</version>
64+
<scope>provided</scope>
65+
</dependency>
66+
<dependency>
67+
<groupId>junit</groupId>
68+
<artifactId>junit</artifactId>
69+
<version>4.13.2</version>
70+
</dependency>
71+
</dependencies>
72+
<build>
73+
<plugins>
74+
<plugin>
75+
<groupId>org.apache.maven.plugins</groupId>
76+
<artifactId>maven-assembly-plugin</artifactId>
77+
<version>3.1.0</version>
78+
<configuration>
79+
<descriptorRefs>
80+
<descriptorRef>jar-with-dependencies</descriptorRef>
81+
</descriptorRefs>
82+
<archive>
83+
<manifest>
84+
<addClasspath>true</addClasspath>
85+
<mainClass>com.oneandone.gameoflife.Main</mainClass>
86+
</manifest>
87+
</archive>
88+
</configuration>
89+
<executions>
90+
<execution>
91+
<id>assemble-all</id>
92+
<phase>package</phase>
93+
<goals>
94+
<goal>single</goal>
95+
</goals>
96+
</execution>
97+
</executions>
98+
</plugin>
99+
<plugin>
100+
<groupId>org.apache.maven.plugins</groupId>
101+
<artifactId>maven-source-plugin</artifactId>
102+
<version>3.2.1</version>
103+
<executions>
104+
<execution>
105+
<id>attach-sources</id>
106+
<goals>
107+
<goal>jar</goal>
108+
</goals>
109+
</execution>
110+
</executions>
111+
</plugin>
112+
<plugin>
113+
<groupId>org.apache.maven.plugins</groupId>
114+
<artifactId>maven-javadoc-plugin</artifactId>
115+
<version>3.1.1</version>
116+
<configuration>
117+
<detectJavaApiLink>false</detectJavaApiLink>
118+
</configuration>
119+
<executions>
120+
<execution>
121+
<id>attach-javadocs</id>
122+
<goals>
123+
<goal>jar</goal>
124+
</goals>
125+
</execution>
126+
</executions>
127+
</plugin>
128+
<plugin>
129+
<groupId>org.apache.maven.plugins</groupId>
130+
<artifactId>maven-release-plugin</artifactId>
131+
<version>3.0.0-M1</version>
132+
<configuration>
133+
<releaseProfiles>release</releaseProfiles>
134+
</configuration>
135+
</plugin>
136+
</plugins>
137+
</build>
138+
<profiles>
139+
<profile>
140+
<id>release</id>
141+
<distributionManagement>
142+
<snapshotRepository>
143+
<id>ossrh</id>
144+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
145+
</snapshotRepository>
146+
</distributionManagement>
147+
<build>
48148
<plugins>
49-
<plugin>
50-
<groupId>org.apache.maven.plugins</groupId>
51-
<artifactId>maven-assembly-plugin</artifactId>
52-
<version>3.1.0</version>
53-
<configuration>
54-
<descriptorRefs>
55-
<descriptorRef>jar-with-dependencies</descriptorRef>
56-
</descriptorRefs>
57-
<archive>
58-
<manifest>
59-
<addClasspath>true</addClasspath>
60-
<mainClass>com.oneandone.gameoflife.Main</mainClass>
61-
</manifest>
62-
</archive>
63-
</configuration>
64-
<executions>
65-
<execution>
66-
<id>assemble-all</id>
67-
<phase>package</phase>
68-
<goals>
69-
<goal>single</goal>
70-
</goals>
71-
</execution>
72-
</executions>
73-
</plugin>
149+
<plugin>
150+
<groupId>org.sonatype.plugins</groupId>
151+
<artifactId>nexus-staging-maven-plugin</artifactId>
152+
<version>1.6.13</version>
153+
<extensions>true</extensions>
154+
<configuration>
155+
<serverId>ossrh</serverId>
156+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
157+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
158+
</configuration>
159+
</plugin>
160+
<plugin>
161+
<groupId>org.apache.maven.plugins</groupId>
162+
<artifactId>maven-gpg-plugin</artifactId>
163+
<version>1.6</version>
164+
<configuration>
165+
<keyname>0AC5A45E91FA93DA25380017B0D87B063EAD41F1</keyname>
166+
</configuration>
167+
<executions>
168+
<execution>
169+
<id>sign-artifacts</id>
170+
<phase>verify</phase>
171+
<goals>
172+
<goal>sign</goal>
173+
</goals>
174+
</execution>
175+
</executions>
176+
</plugin>
74177
</plugins>
75-
</build>
178+
</build>
179+
</profile>
180+
</profiles>
76181
</project>

0 commit comments

Comments
 (0)