Skip to content

Commit debd182

Browse files
committed
#132 Publish to central portal
Signed-off-by: Patrick <patrick.weiss@iteratec.com>
1 parent 1fb27d2 commit debd182

File tree

4 files changed

+45
-52
lines changed

4 files changed

+45
-52
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ on:
2323

2424
jobs:
2525
publish-release:
26-
runs-on: ubuntu-22.04
26+
runs-on: ubuntu-24.04
2727
if: github.repository == 'secureCodeBox/defectdojo-client-java'
2828
permissions:
2929
contents: write # needed for release creation
@@ -49,7 +49,7 @@ jobs:
4949
with:
5050
java-version: 17
5151
distribution: temurin
52-
server-id: ossrh
52+
server-id: central
5353
server-username: MAVEN_USERNAME
5454
server-password: MAVEN_PASSWORD
5555
gpg-private-key: ${{ secrets.SIGNING_KEY }}

.github/workflows/snapshot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
publish-snapshot:
16-
runs-on: ubuntu-22.04
16+
runs-on: ubuntu-24.04
1717
if: github.repository == 'secureCodeBox/defectdojo-client-java'
1818
steps:
1919

@@ -25,7 +25,7 @@ jobs:
2525
with:
2626
java-version: 17
2727
distribution: temurin
28-
server-id: ossrh
28+
server-id: central
2929
server-username: MAVEN_USERNAME
3030
server-password: MAVEN_PASSWORD
3131

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on: [pull_request, push, workflow_dispatch]
1010

1111
jobs:
1212
test:
13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414
steps:
1515

1616
- name: Checkout repository

pom.xml

Lines changed: 40 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<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">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
34
<modelVersion>4.0.0</modelVersion>
45

6+
57
<groupId>io.securecodebox</groupId>
68
<artifactId>defectdojo-client</artifactId>
79
<version>2.0.2-SNAPSHOT</version>
@@ -24,17 +26,6 @@
2426
<url>https://www.securecodebox.io/</url>
2527
</organization>
2628

27-
<prerequisites>
28-
<maven>${maven.version}</maven>
29-
</prerequisites>
30-
31-
<scm>
32-
<connection>scm:git:https://github.com/secureCodeBox/defectdojo-client-java.git</connection>
33-
<developerConnection>scm:git:https://github.com/secureCodeBox/defectdojo-client-java.git</developerConnection>
34-
<url>https://github.com/secureCodeBox/defectdojo-client-java.git</url>
35-
<tag>defectdojo-client-2.0.0</tag>
36-
</scm>
37-
3829
<developers>
3930
<developer>
4031
<id>jannik.hollenbach</id>
@@ -63,6 +54,22 @@
6354
</developer>
6455
</developers>
6556

57+
<prerequisites>
58+
<maven>${maven.version}</maven>
59+
</prerequisites>
60+
61+
<issueManagement>
62+
<system>github</system>
63+
<url>https://github.com/secureCodeBox/defectdojo-client-java/issues</url>
64+
</issueManagement>
65+
66+
<scm>
67+
<connection>scm:git:https://github.com/secureCodeBox/defectdojo-client-java.git</connection>
68+
<developerConnection>scm:git:https://github.com/secureCodeBox/defectdojo-client-java.git</developerConnection>
69+
<url>https://github.com/secureCodeBox/defectdojo-client-java.git</url>
70+
<tag>defectdojo-client-2.0.0</tag>
71+
</scm>
72+
6673
<properties>
6774
<maven.version>3.5.0</maven.version>
6875
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -122,12 +129,12 @@
122129
<version>${com.fasterxml.jackson.version}</version>
123130
</dependency>
124131
<dependency>
125-
<groupId>org.slf4j</groupId>
126-
<artifactId>slf4j-api</artifactId>
127-
<version>2.0.11</version>
132+
<groupId>org.slf4j</groupId>
133+
<artifactId>slf4j-api</artifactId>
134+
<version>2.0.11</version>
128135
</dependency>
129136

130-
<dependency>
137+
<dependency>
131138
<groupId>org.projectlombok</groupId>
132139
<artifactId>lombok</artifactId>
133140
<version>1.18.30</version>
@@ -178,23 +185,25 @@
178185
</dependency>
179186
</dependencies>
180187

181-
<distributionManagement>
182-
<snapshotRepository>
183-
<id>ossrh</id>
184-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
185-
</snapshotRepository>
186-
<repository>
187-
<id>ossrh</id>
188-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
189-
</repository>
190-
</distributionManagement>
191-
192188
<profiles>
193189
<profile>
194190
<id>release</id>
195191
<build>
196192
<plugins>
197193
<plugin>
194+
<groupId>org.sonatype.central</groupId>
195+
<artifactId>central-publishing-maven-plugin</artifactId>
196+
<version>0.8.0</version>
197+
<extensions>true</extensions>
198+
<configuration>
199+
<publishingServerId>central</publishingServerId>
200+
<tokenAuth>true</tokenAuth>
201+
<autoPublish>true</autoPublish>
202+
<waitUntil>published</waitUntil>
203+
</configuration>
204+
</plugin>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
198207
<artifactId>maven-gpg-plugin</artifactId>
199208
<version>3.1.0</version>
200209
<executions>
@@ -259,8 +268,8 @@
259268

260269
<configuration>
261270
<rules>
262-
<dependencyConvergence />
263-
<requirePluginVersions />
271+
<dependencyConvergence/>
272+
<requirePluginVersions/>
264273
<requireJavaVersion>
265274
<version>${project.build.version.target}</version>
266275
</requireJavaVersion>
@@ -319,18 +328,6 @@
319328
<version>3.2.5</version>
320329
</plugin>
321330

322-
<plugin>
323-
<groupId>org.sonatype.plugins</groupId>
324-
<artifactId>nexus-staging-maven-plugin</artifactId>
325-
<version>1.6.13</version>
326-
<extensions>true</extensions>
327-
<configuration>
328-
<serverId>ossrh</serverId>
329-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
330-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
331-
</configuration>
332-
</plugin>
333-
334331
<plugin>
335332
<artifactId>maven-javadoc-plugin</artifactId>
336333
<version>3.6.3</version>
@@ -380,11 +377,7 @@
380377
<groupId>org.jacoco</groupId>
381378
<artifactId>jacoco-maven-plugin</artifactId>
382379
</plugin>
383-
384-
<plugin>
385-
<groupId>org.sonatype.plugins</groupId>
386-
<artifactId>nexus-staging-maven-plugin</artifactId>
387-
</plugin>
388380
</plugins>
389381
</build>
390-
</project>
382+
383+
</project>

0 commit comments

Comments
 (0)