Skip to content

Commit a929fbc

Browse files
committed
Update SPDX lib versions and update publishing for Central
Fixes #315
1 parent a8606e5 commit a929fbc

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

pom.xml

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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>
3-
<groupId>org.spdx</groupId>
4-
<artifactId>java-spdx-library</artifactId>
5-
<version>2.0.1-SNAPSHOT</version>
6-
<packaging>jar</packaging>
3+
<groupId>org.spdx</groupId>
4+
<artifactId>java-spdx-library</artifactId>
5+
<version>2.0.1-SNAPSHOT</version>
6+
<packaging>jar</packaging>
77
<name>java-spdx-library</name>
88
<url>https://github.com/spdx/Spdx-Java-Library</url>
99
<description>Java library which implements the Java object model for SPDX and provides useful helper functions.</description>
@@ -33,13 +33,6 @@
3333
<developerConnection>scm:git:[email protected]:spdx/Spdx-Java-Library.git</developerConnection>
3434
<tag>master</tag>
3535
</scm>
36-
<distributionManagement>
37-
<repository>
38-
<id>ossrh</id>
39-
<name>spdx-spdx-tools</name>
40-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
41-
</repository>
42-
</distributionManagement>
4336
<properties>
4437
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
4538
<project.build.outputTimestamp>1745001494</project.build.outputTimestamp>
@@ -72,20 +65,20 @@
7265
<id>release</id>
7366
<build>
7467
<plugins>
75-
<plugin>
76-
<groupId>org.apache.maven.plugins</groupId>
77-
<artifactId>maven-source-plugin</artifactId>
78-
<version>3.3.1</version>
79-
<executions>
80-
<execution>
81-
<id>attach-sources</id>
82-
<phase>verify</phase>
83-
<goals>
84-
<goal>jar-no-fork</goal>
85-
</goals>
86-
</execution>
87-
</executions>
88-
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-source-plugin</artifactId>
71+
<version>3.3.1</version>
72+
<executions>
73+
<execution>
74+
<id>attach-sources</id>
75+
<phase>verify</phase>
76+
<goals>
77+
<goal>jar-no-fork</goal>
78+
</goals>
79+
</execution>
80+
</executions>
81+
</plugin>
8982
<plugin>
9083
<groupId>org.apache.maven.plugins</groupId>
9184
<artifactId>maven-gpg-plugin</artifactId>
@@ -163,7 +156,7 @@
163156
</dependency>
164157
</dependencies>
165158
<build>
166-
<resources>
159+
<resources>
167160
<resource>
168161
<targetPath>resources</targetPath>
169162
<filtering>false</filtering>
@@ -210,6 +203,15 @@
210203
</testResource>
211204
</testResources>
212205
<plugins>
206+
<plugin>
207+
<groupId>org.sonatype.central</groupId>
208+
<artifactId>central-publishing-maven-plugin</artifactId>
209+
<version>0.7.0</version>
210+
<extensions>true</extensions>
211+
<configuration>
212+
<publishingServerId>central</publishingServerId>
213+
</configuration>
214+
</plugin>
213215
<plugin>
214216
<groupId>org.apache.maven.plugins</groupId>
215217
<artifactId>maven-compiler-plugin</artifactId>
@@ -293,21 +295,21 @@
293295
<originator>Organization: Linux Foundation</originator>
294296
</configuration>
295297
</plugin>
296-
<plugin>
297-
<groupId>org.apache.maven.plugins</groupId>
298-
<artifactId>maven-release-plugin</artifactId>
299-
<version>3.1.1</version>
300-
<configuration>
301-
<tagNameFormat>v@{project.version}</tagNameFormat>
302-
<releaseProfiles>release</releaseProfiles>
303-
<goals>deploy</goals>
304-
</configuration>
305-
</plugin>
306-
<plugin>
307-
<groupId>org.owasp</groupId>
308-
<artifactId>dependency-check-maven</artifactId>
309-
<version>${dependency-check-maven.version}</version>
310-
</plugin>
298+
<plugin>
299+
<groupId>org.apache.maven.plugins</groupId>
300+
<artifactId>maven-release-plugin</artifactId>
301+
<version>3.1.1</version>
302+
<configuration>
303+
<tagNameFormat>v@{project.version}</tagNameFormat>
304+
<releaseProfiles>release</releaseProfiles>
305+
<goals>deploy</goals>
306+
</configuration>
307+
</plugin>
308+
<plugin>
309+
<groupId>org.owasp</groupId>
310+
<artifactId>dependency-check-maven</artifactId>
311+
<version>${dependency-check-maven.version}</version>
312+
</plugin>
311313
<plugin>
312314
<groupId>org.codehaus.mojo</groupId>
313315
<artifactId>build-helper-maven-plugin</artifactId>

0 commit comments

Comments
 (0)