Merge branch '144-create-maven-release-profile-for-releasing-to-maven-central' into 'release/1.5.x'

Resolve "Create Maven release profile for releasing to Maven Central"

See merge request kosit/validator!67
This commit is contained in:
Renzo Kottmann 2025-08-19 15:41:52 +02:00
commit 6cc9a6eea7
2 changed files with 26 additions and 8 deletions

View file

@ -5,7 +5,7 @@
<server>
<id>central</id>
<username>${MVN_CENTRAL_USER}</username>
<password>${MVN_CENTRAL_TOKEN}</password>
<password>${MAVEN_CENTRAL_TOKEN}</password>
</server>
</servers>
</settings>

32
pom.xml
View file

@ -202,7 +202,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.8</version>
</plugin>
</plugin>
</plugins>
</pluginManagement>
@ -612,12 +612,6 @@
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
@ -636,6 +630,30 @@
</plugins>
</build>
</profile>
<profile>
<id>release-central</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>owasp-check</id>
<build>