Skip to content

Commit f5d1dfb

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

File tree

1 file changed

+98
-96
lines changed

1 file changed

+98
-96
lines changed

pom.xml

Lines changed: 98 additions & 96 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>
@@ -108,62 +101,62 @@
108101
</build>
109102
</profile>
110103
</profiles>
111-
<dependencies>
112-
<dependency>
113-
<groupId>junit</groupId>
114-
<artifactId>junit</artifactId>
115-
<version>4.13.2</version>
116-
<scope>test</scope>
117-
</dependency>
118-
<dependency>
119-
<groupId>org.slf4j</groupId>
120-
<artifactId>slf4j-api</artifactId>
121-
<version>2.0.17</version>
122-
</dependency>
123-
<dependency>
124-
<groupId>org.apache.commons</groupId>
125-
<artifactId>commons-lang3</artifactId>
126-
<version>3.18.0</version>
127-
</dependency>
128-
<dependency>
129-
<groupId>org.jsoup</groupId>
130-
<artifactId>jsoup</artifactId>
131-
<version>1.21.2</version>
132-
</dependency>
133-
<dependency>
134-
<groupId>com.google.code.findbugs</groupId>
135-
<artifactId>jsr305</artifactId>
136-
<version>3.0.2</version>
137-
</dependency>
138-
<dependency>
139-
<groupId>com.google.code.gson</groupId>
140-
<artifactId>gson</artifactId>
141-
<version>2.13.2</version>
142-
</dependency>
143-
<dependency>
144-
<groupId>net.jodah</groupId>
145-
<artifactId>concurrentunit</artifactId>
146-
<version>0.4.6</version>
147-
<scope>test</scope>
148-
</dependency>
149-
<dependency>
150-
<groupId>org.spdx</groupId>
151-
<artifactId>spdx-java-core</artifactId>
152-
<version>1.0.0</version>
153-
</dependency>
154-
<dependency>
155-
<groupId>org.spdx</groupId>
156-
<artifactId>spdx-java-model-2_X</artifactId>
157-
<version>1.0.0</version>
158-
</dependency>
159-
<dependency>
160-
<groupId>org.spdx</groupId>
161-
<artifactId>spdx-java-model-3_0</artifactId>
162-
<version>1.0.0</version>
163-
</dependency>
164-
</dependencies>
165-
<build>
166-
<resources>
104+
<dependencies>
105+
<dependency>
106+
<groupId>junit</groupId>
107+
<artifactId>junit</artifactId>
108+
<version>4.13.2</version>
109+
<scope>test</scope>
110+
</dependency>
111+
<dependency>
112+
<groupId>org.slf4j</groupId>
113+
<artifactId>slf4j-api</artifactId>
114+
<version>2.0.17</version>
115+
</dependency>
116+
<dependency>
117+
<groupId>org.apache.commons</groupId>
118+
<artifactId>commons-lang3</artifactId>
119+
<version>3.18.0</version>
120+
</dependency>
121+
<dependency>
122+
<groupId>org.jsoup</groupId>
123+
<artifactId>jsoup</artifactId>
124+
<version>1.21.2</version>
125+
</dependency>
126+
<dependency>
127+
<groupId>com.google.code.findbugs</groupId>
128+
<artifactId>jsr305</artifactId>
129+
<version>3.0.2</version>
130+
</dependency>
131+
<dependency>
132+
<groupId>com.google.code.gson</groupId>
133+
<artifactId>gson</artifactId>
134+
<version>2.13.2</version>
135+
</dependency>
136+
<dependency>
137+
<groupId>net.jodah</groupId>
138+
<artifactId>concurrentunit</artifactId>
139+
<version>0.4.6</version>
140+
<scope>test</scope>
141+
</dependency>
142+
<dependency>
143+
<groupId>org.spdx</groupId>
144+
<artifactId>spdx-java-core</artifactId>
145+
<version>1.0.1</version>
146+
</dependency>
147+
<dependency>
148+
<groupId>org.spdx</groupId>
149+
<artifactId>spdx-java-model-2_X</artifactId>
150+
<version>1.0.1</version>
151+
</dependency>
152+
<dependency>
153+
<groupId>org.spdx</groupId>
154+
<artifactId>spdx-java-model-3_0</artifactId>
155+
<version>1.0.1</version>
156+
</dependency>
157+
</dependencies>
158+
<build>
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)