Added maven gpg plugin for artifact-signing (#101)

This commit is contained in:
Artemis-the-gr8 2022-08-17 11:34:46 +02:00
parent 7e2a105b71
commit d22938982b
2 changed files with 19 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd"> <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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>io.github.artemis-the-gr8</groupId> <groupId>io.github.ithotl</groupId>
<artifactId>PlayerStats</artifactId> <artifactId>PlayerStats</artifactId>
<name>PlayerStats</name> <name>PlayerStats</name>
<version>1.7</version> <version>1.7</version>
@ -60,15 +60,15 @@
<relocations> <relocations>
<relocation> <relocation>
<pattern>net.kyori</pattern> <pattern>net.kyori</pattern>
<shadedPattern>com.github.artemis.the.gr8.lib.kyori</shadedPattern> <shadedPattern>com.artemis.the.gr8.lib.kyori</shadedPattern>
</relocation> </relocation>
<relocation> <relocation>
<pattern>com.tchristofferson</pattern> <pattern>com.tchristofferson</pattern>
<shadedPattern>com.github.artemis.the.gr8.util.tchristofferson</shadedPattern> <shadedPattern>com.artemis.the.gr8.util.tchristofferson</shadedPattern>
</relocation> </relocation>
<relocation> <relocation>
<pattern>org.bstats</pattern> <pattern>org.bstats</pattern>
<shadedPattern>com.github.artemis.the.gr8.util.bstats</shadedPattern> <shadedPattern>com.artemis.the.gr8.util.bstats</shadedPattern>
</relocation> </relocation>
</relocations> </relocations>
<filters> <filters>
@ -125,7 +125,6 @@
</execution> </execution>
</executions> </executions>
<configuration> <configuration>
<name>PlayerStats Javadocs</name>
<additionalOptions>-Xdoclint:none</additionalOptions> <additionalOptions>-Xdoclint:none</additionalOptions>
<failOnError>false</failOnError> <failOnError>false</failOnError>
<quiet>true</quiet> <quiet>true</quiet>
@ -133,7 +132,7 @@
<groups> <groups>
<group> <group>
<title>API</title> <title>API</title>
<packages>com.github.artemis.the.gr8.playerstats.api</packages> <packages>com.artemis.the.gr8.playerstats.api</packages>
</group> </group>
</groups> </groups>
<detectLinks>true</detectLinks> <detectLinks>true</detectLinks>

14
pom.xml
View File

@ -206,6 +206,20 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>