Compare commits

...

3 commits

Author SHA1 Message Date
Philip Helger
3edc5c6ae4 Constant cache key 2025-08-19 15:42:51 +02:00
Renzo Kottmann
6cc9a6eea7 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
2025-08-19 15:41:52 +02:00
Philip Helger
5bbb5b373d Resolve "Create Maven release profile for releasing to Maven Central" 2025-08-19 15:41:52 +02:00
3 changed files with 28 additions and 9 deletions

View file

@ -10,7 +10,8 @@ before_script:
- export CI_JOB_TIMESTAMP="-Dbuild.timestamp=$(date --utc --iso-8601=seconds)" - export CI_JOB_TIMESTAMP="-Dbuild.timestamp=$(date --utc --iso-8601=seconds)"
cache: cache:
key: "$CI_JOB_NAME" # Change the cache key if major dependencies change
key: constant151
paths: paths:
- .m2/repository - .m2/repository

View file

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

30
pom.xml
View file

@ -612,12 +612,6 @@
<profiles> <profiles>
<profile> <profile>
<id>release-sign-artifacts</id> <id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -636,6 +630,30 @@
</plugins> </plugins>
</build> </build>
</profile> </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> <profile>
<id>owasp-check</id> <id>owasp-check</id>
<build> <build>