Skip to content

Commit 17d7e33

Browse files
committed
Github Maven stuff
1 parent 8d28d4a commit 17d7e33

File tree

3 files changed

+44
-21
lines changed

3 files changed

+44
-21
lines changed

.github/workflows/maven.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 1.8
16-
# server-id: ossrh
17-
# server-username: MAVEN_USERNAME
18-
# server-password: MAVEN_PASSWORD
16+
env:
17+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
18+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
1919
- name: Build Pubsubly API with Maven
2020
run: mvn --settings settings.xml -B install --file ./pubsubly-api/pom.xml
2121
- name: Deploy Pubsubly API with Maven
@@ -26,5 +26,11 @@ jobs:
2626
mvn --settings settings.xml deploy --file ./pubsubly-api/pom.xml
2727
- name: Build Pubsubly Redis Message Header Plugin with Maven
2828
run: mvn --settings settings.xml -U -B install --file ./redis-message-header-plugin/pom.xml
29-
# - name: Build Pubsubly Service with Maven
30-
# run: mvn -B package --file ./pubsubly-service/pom.xml
29+
- name: Deploy Pubsubly Redis Message Header Plugin with Maven
30+
run:
31+
mvn --settings settings.xml deploy --file ./redis-message-header-plugin/pom.xml
32+
- name: Build Pubsubly Service with Maven
33+
run: mvn -B package --file ./pubsubly-service/pom.xml
34+
- name: Deploy Pubsubly Service with Maven
35+
run:
36+
mvn --settings settings.xml deploy --file ./pubsubly-service/pom.xml

pubsubly-service/pom.xml

+33-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,31 @@
1616
<relativePath/>
1717
</parent>
1818

19+
<scm>
20+
<url>https://github.com/wkennedy/pubsubly</url>
21+
<connection>scm:git:[email protected]:wkennedy/pubsubly.git</connection>
22+
<developerConnection>scm:git:[email protected]:wkennedy/pubsubly.git</developerConnection>
23+
</scm>
24+
25+
<developers>
26+
<developer>
27+
<id>kennedyw</id>
28+
<name>Will Kennedy</name>
29+
<email>[email protected]</email>
30+
</developer>
31+
</developers>
32+
33+
<distributionManagement>
34+
<snapshotRepository>
35+
<id>ossrh</id>
36+
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
37+
</snapshotRepository>
38+
<repository>
39+
<id>ossrh</id>
40+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
41+
</repository>
42+
</distributionManagement>
43+
1944
<properties>
2045
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2146
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
@@ -26,7 +51,7 @@
2651
<dependency>
2752
<groupId>com.github.wkennedy.pubsubly</groupId>
2853
<artifactId>pubsubly-api</artifactId>
29-
<version>1.0.0-SNAPSHOT</version>
54+
<version>1.1.0-SNAPSHOT</version>
3055
</dependency>
3156
<dependency>
3257
<groupId>com.github.wkennedy.pubsubly</groupId>
@@ -177,5 +202,12 @@
177202
</plugins>
178203
</build>
179204

205+
<repositories>
206+
<repository>
207+
<id>github</id>
208+
<name>GitHub wkennedy Apache Maven Packages</name>
209+
<url>https://maven.pkg.github.com/wkennedy/pubsubly</url>
210+
</repository>
211+
</repositories>
180212

181213
</project>

settings.xml

-15
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,6 @@
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
33
http://maven.apache.org/xsd/settings-1.0.0.xsd">
44

5-
<!-- <profiles>-->
6-
<!-- <profile>-->
7-
<!-- <id>allow-snapshots</id>-->
8-
<!-- <activation><activeByDefault>true</activeByDefault></activation>-->
9-
<!-- <repositories>-->
10-
<!-- <repository>-->
11-
<!-- <id>snapshots-repo</id>-->
12-
<!-- <url>https://oss.sonatype.org/content/repositories/snapshots</url>-->
13-
<!-- <releases><enabled>false</enabled></releases>-->
14-
<!-- <snapshots><enabled>true</enabled></snapshots>-->
15-
<!-- </repository>-->
16-
<!-- </repositories>-->
17-
<!-- </profile>-->
18-
<!-- </profiles>-->
19-
205
<servers>
216
<server>
227
<id>ossrh</id>

0 commit comments

Comments
 (0)