Skip to content

Commit de43d60

Browse files
committed
Project setup update
1 parent af98b60 commit de43d60

File tree

3 files changed

+77
-37
lines changed

3 files changed

+77
-37
lines changed

pom.xml

Lines changed: 68 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
<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">
22
<modelVersion>4.0.0</modelVersion>
33

4-
<parent>
5-
<groupId>org.sonatype.oss</groupId>
6-
<artifactId>oss-parent</artifactId>
7-
<version>9</version>
8-
</parent>
9-
104
<groupId>com.sprylab.xar</groupId>
115
<artifactId>parent</artifactId>
126
<version>0.9.10-SNAPSHOT</version>
@@ -69,25 +63,34 @@
6963
<maven.compiler.target>1.8</maven.compiler.target>
7064

7165
<!-- Dependency versions -->
72-
<org.slf4j-version>1.7.30</org.slf4j-version>
73-
<okhttp.version>4.9.0</okhttp.version>
66+
<commons-cli.version>1.4</commons-cli.version>
67+
<jcabi-manifests.version>1.2.1</jcabi-manifests.version>
68+
<org.slf4j-version>2.0.7</org.slf4j-version>
69+
<okhttp.version>4.10.0</okhttp.version>
7470
<okio.version>2.9.0</okio.version>
75-
71+
<simple-xml.version>2.7.1</simple-xml.version>
72+
<joou.version>0.9.4</joou.version>
73+
7674
<!-- Test dependency versions -->
77-
<junit.version>4.13.1</junit.version>
78-
<assertj-core.version>3.18.1</assertj-core.version>
75+
<junit.version>4.13.2</junit.version>
76+
<assertj-core.version>3.24.2</assertj-core.version>
7977
<!-- Do NOT upgrade to 2.6 - it requires Java 7 APIs which are not available everywhere (e.g. Android) -->
8078
<commons-io.version>2.5</commons-io.version>
8179
<commons-codec.version>1.11</commons-codec.version>
8280
<commons-lang3.version>3.7</commons-lang3.version>
8381
<commons-text.version>1.3</commons-text.version>
8482

8583
<!-- Plugin versions -->
86-
<jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
87-
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
88-
<maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
84+
<buildnumber-maven-plugin.version>3.0.0</buildnumber-maven-plugin.version>
85+
<jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
86+
<maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
87+
<maven-gpg-plugin.version>3.1.0</maven-gpg-plugin.version>
88+
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
89+
<maven-javadoc-plugin.version>3.5.0</maven-javadoc-plugin.version>
90+
<maven-release-plugin.version>3.0.0</maven-release-plugin.version>
91+
<maven-shade-plugin.version>3.4.1</maven-shade-plugin.version>
92+
<nexus-staging-maven-plugin.version>1.6.13</nexus-staging-maven-plugin.version>
8993
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
90-
<maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>
9194
</properties>
9295

9396
<dependencyManagement>
@@ -167,9 +170,31 @@
167170
</dependencies>
168171
</dependencyManagement>
169172

173+
<distributionManagement>
174+
<snapshotRepository>
175+
<id>ossrh</id>
176+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
177+
</snapshotRepository>
178+
<repository>
179+
<id>ossrh</id>
180+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
181+
</repository>
182+
</distributionManagement>
170183
<build>
171184
<pluginManagement>
172185
<plugins>
186+
<plugin>
187+
<groupId>org.apache.maven.plugins</groupId>
188+
<artifactId>maven-release-plugin</artifactId>
189+
<version>${maven-release-plugin.version}</version>
190+
<configuration>
191+
<autoVersionSubmodules>true</autoVersionSubmodules>
192+
<tagNameFormat>@{project.version}</tagNameFormat>
193+
<useReleaseProfile>false</useReleaseProfile>
194+
<releaseProfiles>release</releaseProfiles>
195+
<goals>deploy</goals>
196+
</configuration>
197+
</plugin>
173198
<plugin>
174199
<groupId>org.jacoco</groupId>
175200
<artifactId>jacoco-maven-plugin</artifactId>
@@ -208,7 +233,7 @@
208233
<execution>
209234
<id>attach-sources</id>
210235
<goals>
211-
<goal>jar</goal>
236+
<goal>jar-no-fork</goal>
212237
</goals>
213238
</execution>
214239
</executions>
@@ -228,6 +253,33 @@
228253
</plugin>
229254
</plugins>
230255
</pluginManagement>
256+
<plugins>
257+
<plugin>
258+
<groupId>org.apache.maven.plugins</groupId>
259+
<artifactId>maven-gpg-plugin</artifactId>
260+
<version>${maven-gpg-plugin.version}</version>
261+
<executions>
262+
<execution>
263+
<id>sign-artifacts</id>
264+
<phase>verify</phase>
265+
<goals>
266+
<goal>sign</goal>
267+
</goals>
268+
</execution>
269+
</executions>
270+
</plugin>
271+
<plugin>
272+
<groupId>org.sonatype.plugins</groupId>
273+
<artifactId>nexus-staging-maven-plugin</artifactId>
274+
<version>${nexus-staging-maven-plugin.version}</version>
275+
<extensions>true</extensions>
276+
<configuration>
277+
<serverId>ossrh</serverId>
278+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
279+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
280+
</configuration>
281+
</plugin>
282+
</plugins>
231283
</build>
232284
</project>
233285

xar-cli/pom.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212

1313
<name>xar (CLI)</name>
1414

15-
<properties>
16-
<!-- Dependency versions -->
17-
<commons-cli.version>1.4</commons-cli.version>
18-
<jcabi-manifests.version>1.1</jcabi-manifests.version>
19-
20-
<!-- Plugin versions -->
21-
<buildnumber-maven-plugin.version>1.4</buildnumber-maven-plugin.version>
22-
<maven-shade-plugin.version>3.1.1</maven-shade-plugin.version>
23-
</properties>
24-
2515
<dependencies>
2616
<dependency>
2717
<groupId>${project.groupId}</groupId>
@@ -55,6 +45,10 @@
5545

5646
<build>
5747
<plugins>
48+
<plugin>
49+
<groupId>org.jacoco</groupId>
50+
<artifactId>jacoco-maven-plugin</artifactId>
51+
</plugin>
5852
<plugin>
5953
<groupId>org.codehaus.mojo</groupId>
6054
<artifactId>buildnumber-maven-plugin</artifactId>
@@ -86,6 +80,10 @@
8680
<groupId>org.apache.maven.plugins</groupId>
8781
<artifactId>maven-source-plugin</artifactId>
8882
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-javadoc-plugin</artifactId>
86+
</plugin>
8987
<plugin>
9088
<groupId>org.apache.maven.plugins</groupId>
9189
<artifactId>maven-shade-plugin</artifactId>
@@ -114,4 +112,4 @@
114112
</plugins>
115113
</build>
116114

117-
</project>
115+
</project>

xar/pom.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@
1212

1313
<name>xar (Library)</name>
1414

15-
<properties>
16-
<!-- Dependency versions -->
17-
<simple-xml.version>2.7.1</simple-xml.version>
18-
<joou.version>0.9.4</joou.version>
19-
20-
<!-- Test dependency versions -->
21-
<junit.version>4.12</junit.version>
22-
<commons-codec.version>1.10</commons-codec.version>
23-
</properties>
24-
2515
<dependencies>
2616
<!-- Simple XML Framework -->
2717
<dependency>

0 commit comments

Comments
 (0)