Skip to content

Commit b7018f0

Browse files
committed
Prep for maven deploy
1 parent 085aad8 commit b7018f0

File tree

2 files changed

+79
-2
lines changed

2 files changed

+79
-2
lines changed

.github/workflows/test.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths-ignore:
8+
- '**.md'
9+
pull_request:
10+
paths-ignore:
11+
- '**.md'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/[email protected]
19+
20+
- name: Import GPG signing key
21+
uses: crazy-max/[email protected]
22+
with:
23+
gpg_private_key: ${{ secrets.MVN_SIGNING_KEY }}
24+
passphrase: ${{ secrets.MVN_SIGNING_KEY_PASSPHRASE }}
25+
26+
- uses: actions/[email protected]
27+
with:
28+
distribution: 'temurin'
29+
java-version: '17'
30+
cache: 'maven'
31+
32+
- uses: stCarolas/setup-maven@v5
33+
with:
34+
maven-version: 3.9.9
35+
36+
- name: Build and bundle with Maven
37+
run: mvn clean source:jar javadoc:javadoc javadoc:jar package gpg:sign -Dgpg.keyname=${{ secrets.MVN_SIGNING_KEY_NAME }} -DskipTests
38+
39+
- name: Publish artifacts (Optional)
40+
if: success()
41+
uses: actions/[email protected]
42+
with:
43+
name: build-artifacts
44+
path: |
45+
target/*pom*
46+
target/*jar*

pom.xml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,36 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<name>InvenTree SDK (Java)</name>
8-
97
<groupId>com.w3asel</groupId>
108
<artifactId>inventree-sdk-java</artifactId>
119
<packaging>jar</packaging>
1210
<version>0.18.317-SNAPSHOT</version>
1311

12+
<name>InvenTree SDK (Java)</name>
13+
<description>A Java implementation of the OpenAPI spec published by InvenTree to allow interfacing with a server.</description>
14+
<url>https://github.com/1337joe/inventree-sdk-java</url>
15+
1416
<licenses>
1517
<license>
1618
<name>MIT License</name>
1719
<url>http://www.opensource.org/licenses/mit-license.php</url>
1820
</license>
1921
</licenses>
2022

23+
<developers>
24+
<developer>
25+
<name>Joseph Rogers</name>
26+
<email>[email protected]</email>
27+
<url>https://www.w3asel.com</url>
28+
</developer>
29+
</developers>
30+
31+
<scm>
32+
<connection>scm:[email protected]:1337joe/inventree-sdk-java.git</connection>
33+
<developerConnection>scm:[email protected]:1337joe/inventree-sdk-java.git</developerConnection>
34+
<url>https://github.com/1337joe/inventree-sdk-java</url>
35+
</scm>
36+
2137
<properties>
2238
<java.version>1.8</java.version>
2339
<maven.compiler.source>${java.version}</maven.compiler.source>
@@ -39,6 +55,7 @@
3955
<junit.version>5.11.3</junit.version>
4056
<plugin-replacer.version>1.5.3</plugin-replacer.version>
4157
<plugin-openapi-generator.version>7.11.0</plugin-openapi-generator.version>
58+
<plugin-javadoc.version>3.11.2</plugin-javadoc.version>
4259
</properties>
4360

4461
<dependencies>
@@ -255,6 +272,20 @@
255272
</execution>
256273
</executions>
257274
</plugin>
275+
<plugin>
276+
<groupId>org.apache.maven.plugins</groupId>
277+
<artifactId>maven-javadoc-plugin</artifactId>
278+
<version>${plugin-javadoc.version}</version>
279+
<configuration>
280+
<tags>
281+
<tag>
282+
<name>http.response.details</name>
283+
<placement>a</placement>
284+
<head>HTTP Response Details:</head>
285+
</tag>
286+
</tags>
287+
</configuration>
288+
</plugin>
258289
</plugins>
259290
</build>
260291
</project>

0 commit comments

Comments
 (0)