Skip to content

Commit 385940a

Browse files
committed
Update the POM template to release to Maven Central
Also updates the spdx java core version to 1.0.1
1 parent 2ac435b commit 385940a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

resources/javaTemplates/PomTemplate.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@
2626
<name>SPDX</name>
2727
<url>http://spdx.org</url>
2828
</organization>
29-
<distributionManagement>
30-
<repository>
31-
<id>ossrh</id>
32-
<name>spdx-spdx-tools</name>
33-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
34-
</repository>
35-
</distributionManagement>
3629
<scm>
3730
<url>https://github.com/spdx/spdx-java-model-3_0</url>
3831
<connection>scm:git:git://github.com/spdx/spdx-java-model-3_0.git</connection>
@@ -107,7 +100,7 @@
107100
<dependency>
108101
<groupId>org.spdx</groupId>
109102
<artifactId>spdx-java-core</artifactId>
110-
<version>1.0.0</version>
103+
<version>1.0.1</version>
111104
</dependency>
112105
<dependency>
113106
<groupId>org.slf4j</groupId>
@@ -129,6 +122,15 @@
129122
</dependencies>
130123
<build>
131124
<plugins>
125+
<plugin>
126+
<groupId>org.sonatype.central</groupId>
127+
<artifactId>central-publishing-maven-plugin</artifactId>
128+
<version>0.7.0</version>
129+
<extensions>true</extensions>
130+
<configuration>
131+
<publishingServerId>central</publishingServerId>
132+
</configuration>
133+
</plugin>
132134
<plugin>
133135
<groupId>org.apache.maven.plugins</groupId>
134136
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)