Skip to content

Commit d3ae8e3

Browse files
committed
Changed artifactId, added gpg signing, javadocs and sources
1 parent 17030f9 commit d3ae8e3

File tree

3 files changed

+94
-13
lines changed

3 files changed

+94
-13
lines changed

.github/workflows/maven-deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ jobs:
1111
java-version: 1.8
1212
- name: Build
1313
run: mvn -B package --file pom.xml
14+
- name: Install GPG Key
15+
run: echo -e "$GPG_PRIVATE_KEY" | gpg --import
16+
env:
17+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
1418
- name: Deploy to JavaWebStack Repository
1519
run: mvn deploy -s build/settings.xml
1620
env:
1721
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
18-
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
22+
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
23+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

build/settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,14 @@
1414
<username>${env.DEPLOYMENT_USERNAME}</username>
1515
<password>${env.DEPLOYMENT_PASSWORD}</password>
1616
</server>
17+
<server>
18+
<id>ossrh</id>
19+
<username>JavaWebStack</username>
20+
<password>${env.OSSRH_PASSWORD}</password>
21+
</server>
22+
<server>
23+
<id>gpg</id>
24+
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
25+
</server>
1726
</servers>
1827
</settings>

pom.xml

Lines changed: 79 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,55 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<groupId>org.javawebstack</groupId>
8-
<artifactId>AbstractData</artifactId>
9-
<version>1.0-SNAPSHOT</version>
8+
<artifactId>abstract-data</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
11+
<name>abstract-data</name>
12+
<description>A library to abstractly represent structured data and convert it from and to several formats</description>
13+
<url>https://github.com/JavaWebStack/abstract-data</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/abstract-data.git</connection>
33+
<developerConnection>scm:git:ssh://github.com:JavaWebStack/abstract-data.git</developerConnection>
34+
<url>https://github.com/JavaWebStack/abstract-data/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
<dependencies>
1243
<dependency>
1344
<groupId>com.google.code.gson</groupId>
1445
<artifactId>gson</artifactId>
15-
<version>2.8.6</version>
46+
<version>2.8.9</version>
1647
</dependency>
1748
<dependency>
1849
<groupId>org.yaml</groupId>
1950
<artifactId>snakeyaml</artifactId>
20-
<version>1.27</version>
51+
<version>1.29</version>
2152
</dependency>
2253
</dependencies>
2354

2455
<build>
2556
<plugins>
26-
<plugin>
27-
<groupId>org.apache.maven.plugins</groupId>
28-
<artifactId>maven-compiler-plugin</artifactId>
29-
<configuration>
30-
<source>8</source>
31-
<target>8</target>
32-
</configuration>
33-
</plugin>
3457
<plugin>
3558
<artifactId>maven-deploy-plugin</artifactId>
3659
<version>2.7</version>
@@ -44,6 +67,50 @@
4467
</execution>
4568
</executions>
4669
</plugin>
70+
<plugin>
71+
<groupId>org.apache.maven.plugins</groupId>
72+
<artifactId>maven-source-plugin</artifactId>
73+
<version>2.2.1</version>
74+
<executions>
75+
<execution>
76+
<id>attach-sources</id>
77+
<goals>
78+
<goal>jar-no-fork</goal>
79+
</goals>
80+
</execution>
81+
</executions>
82+
</plugin>
83+
<plugin>
84+
<groupId>org.apache.maven.plugins</groupId>
85+
<artifactId>maven-javadoc-plugin</artifactId>
86+
<version>2.9.1</version>
87+
<executions>
88+
<execution>
89+
<id>attach-javadocs</id>
90+
<goals>
91+
<goal>jar</goal>
92+
</goals>
93+
</execution>
94+
</executions>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-gpg-plugin</artifactId>
99+
<version>3.0.1</version>
100+
<executions>
101+
<execution>
102+
<id>sign-artifacts</id>
103+
<phase>verify</phase>
104+
<goals>
105+
<goal>sign</goal>
106+
</goals>
107+
<configuration>
108+
<keyname>A313520526A8DFE1C2A30399C35A3D43C557B112</keyname>
109+
<passphraseServerId>gpg</passphraseServerId>
110+
</configuration>
111+
</execution>
112+
</executions>
113+
</plugin>
47114
</plugins>
48115
</build>
49116

0 commit comments

Comments
 (0)