Skip to content

Commit 8050307

Browse files
committed
Switch from gradle to maven attempt 2
1 parent fe3d78c commit 8050307

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

.github/workflows/deploy-development.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
steps:
1111
- name: Checkout Latest Commit
1212
uses: actions/checkout@v4.2.2
13-
- name: Grant execute permission for gradlew
14-
run: chmod +x gradlew
1513
- name: Bump Version
1614
id: bump
1715
uses: Plugily-Projects/version-bump-action@v10
@@ -34,10 +32,23 @@ jobs:
3432
distribution: 'temurin'
3533
java-version: '21'
3634
java-package: jdk
37-
- name: Grant execute permission for gradlew
38-
run: chmod +x gradlew
39-
- name: Publish with Gradle
40-
run: ./gradlew publishMavenPublicationToSnapshotsRepository --info
41-
env:
42-
MAVEN_USERNAME: ${{ secrets.SNAPSHOTSUSERNAME }}
43-
MAVEN_PASSWORD: ${{ secrets.SNAPSHOTSPASSWORD }}
35+
- name: Set up Maven
36+
uses: stCarolas/setup-maven@v5
37+
with:
38+
maven-version: 3.8.2
39+
- name: Cache
40+
uses: actions/cache@v4.2.2
41+
with:
42+
path: ~/.m2/repository
43+
key: maven-${{ hashFiles('**/pom.xml') }}
44+
restore-keys: maven-
45+
- name: Publish with Maven
46+
uses: s4u/maven-settings-action@v3.1.0
47+
with:
48+
servers: |
49+
[{
50+
"id": "Snapshot",
51+
"username": "${{ secrets.SNAPSHOTSUSERNAME }}",
52+
"password": "${{ secrets.SNAPSHOTSPASSWORD }}"
53+
}]
54+
- run: mvn clean verify compile package site:site javadoc:javadoc javadoc:jar deploy -f pom.xml

pom.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,12 @@
153153

154154
<distributionManagement>
155155
<repository>
156-
<id>plugily-projects</id>
156+
<id>Release</id>
157157
<url>https://maven.plugily.xyz/releases</url>
158158
</repository>
159+
<snapshotRepository>
160+
<id>Snapshot</id>
161+
<url>https://maven.plugily.xyz/snapshots</url>
162+
</snapshotRepository>
159163
</distributionManagement>
160164
</project>

0 commit comments

Comments
 (0)