Skip to content

Commit a3d0f15

Browse files
committed
Renamed artifactId and added gpg signing
1 parent 5ee9117 commit a3d0f15

File tree

3 files changed

+90
-18
lines changed

3 files changed

+90
-18
lines changed

.github/workflows/maven-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ jobs:
1414
java-version: 1.8
1515
- name: Build
1616
run: mvn -B package --file pom.xml
17+
- name: Install GPG Key
18+
run: echo -e "$GPG_PRIVATE_KEY" | gpg --import --no-tty --batch --yes
19+
env:
20+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
1721
- name: Deploy to JavaWebStack Repository
1822
run: mvn deploy -s build/settings.xml
1923
env:
2024
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
2125
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
26+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
JWS Request Validation
44
</p>
55

6-
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/JavaWebStack/Validator/Maven%20Deploy/master)
7-
![GitHub](https://img.shields.io/github/license/JavaWebStack/Validator)
8-
![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Frepo.javawebstack.org%2Forg%2Fjavawebstack%2FValidator%2Fmaven-metadata.xml)
9-
![GitHub contributors](https://img.shields.io/github/contributors/JavaWebStack/Validator)
10-
![Lines of code](https://img.shields.io/tokei/lines/github/JavaWebStack/Validator)
6+
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/JavaWebStack/validator/Maven%20Deploy/master)
7+
![GitHub](https://img.shields.io/github/license/JavaWebStack/validator)
8+
![Maven metadata URL](https://img.shields.io/maven-metadata/v?metadataUrl=https%3A%2F%2Frepo.javawebstack.org%2Forg%2Fjavawebstack%2Fvalidator%2Fmaven-metadata.xml)
9+
![GitHub contributors](https://img.shields.io/github/contributors/JavaWebStack/validator)
10+
![Lines of code](https://img.shields.io/tokei/lines/github/JavaWebStack/validator)
1111
![Discord](https://img.shields.io/discord/815612319378833408?color=%237289DA&label=discord)
1212
![Twitter Follow](https://img.shields.io/twitter/follow/JavaWebStack?style=social)
1313

pom.xml

Lines changed: 80 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,39 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>org.javawebstack</groupId>
8-
<artifactId>Validator</artifactId>
9-
<version>1.0-SNAPSHOT</version>
8+
<artifactId>validator</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
11+
<name>validator</name>
12+
<description>Request Validation Library</description>
13+
<url>https://github.com/JavaWebStack/validator</url>
14+
15+
<licenses>
16+
<license>
17+
<name>The Apache License, Version 2.0</name>
18+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
</license>
20+
</licenses>
21+
22+
<developers>
23+
<developer>
24+
<name>Jan Bebendorf</name>
25+
<email>jan@bebendorf.eu</email>
26+
<organization>JavaWebStack</organization>
27+
<organizationUrl>https://javawebstack.org</organizationUrl>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:git:git://github.com/JavaWebStack/validator.git</connection>
33+
<developerConnection>scm:git:ssh://github.com:JavaWebStack/validator.git</developerConnection>
34+
<url>https://github.com/JavaWebStack/validator/tree/master</url>
35+
</scm>
36+
37+
<properties>
38+
<maven.compiler.source>8</maven.compiler.source>
39+
<maven.compiler.target>8</maven.compiler.target>
40+
</properties>
1041

1142
<repositories>
1243
<repository>
@@ -18,13 +49,13 @@
1849
<dependencies>
1950
<dependency>
2051
<groupId>org.javawebstack</groupId>
21-
<artifactId>AbstractData</artifactId>
22-
<version>1.0-SNAPSHOT</version>
52+
<artifactId>abstract-data</artifactId>
53+
<version>1.0.0-SNAPSHOT</version>
2354
</dependency>
2455
<dependency>
2556
<groupId>org.junit.jupiter</groupId>
2657
<artifactId>junit-jupiter-engine</artifactId>
27-
<version>5.4.2</version>
58+
<version>5.8.1</version>
2859
<scope>test</scope>
2960
</dependency>
3061
<dependency>
@@ -36,14 +67,6 @@
3667

3768
<build>
3869
<plugins>
39-
<plugin>
40-
<groupId>org.apache.maven.plugins</groupId>
41-
<artifactId>maven-compiler-plugin</artifactId>
42-
<configuration>
43-
<source>8</source>
44-
<target>8</target>
45-
</configuration>
46-
</plugin>
4770
<plugin>
4871
<groupId>org.apache.maven.plugins</groupId>
4972
<artifactId>maven-surefire-plugin</artifactId>
@@ -62,6 +85,50 @@
6285
</execution>
6386
</executions>
6487
</plugin>
88+
<plugin>
89+
<groupId>org.apache.maven.plugins</groupId>
90+
<artifactId>maven-source-plugin</artifactId>
91+
<version>2.2.1</version>
92+
<executions>
93+
<execution>
94+
<id>attach-sources</id>
95+
<goals>
96+
<goal>jar-no-fork</goal>
97+
</goals>
98+
</execution>
99+
</executions>
100+
</plugin>
101+
<plugin>
102+
<groupId>org.apache.maven.plugins</groupId>
103+
<artifactId>maven-javadoc-plugin</artifactId>
104+
<version>2.9.1</version>
105+
<executions>
106+
<execution>
107+
<id>attach-javadocs</id>
108+
<goals>
109+
<goal>jar</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-gpg-plugin</artifactId>
117+
<version>3.0.1</version>
118+
<executions>
119+
<execution>
120+
<id>sign-artifacts</id>
121+
<phase>verify</phase>
122+
<goals>
123+
<goal>sign</goal>
124+
</goals>
125+
<configuration>
126+
<keyname>A313520526A8DFE1C2A30399C35A3D43C557B112</keyname>
127+
<passphraseServerId>gpg</passphraseServerId>
128+
</configuration>
129+
</execution>
130+
</executions>
131+
</plugin>
65132
</plugins>
66133
</build>
67134

0 commit comments

Comments
 (0)