Skip to content

Commit 07824e0

Browse files
Update repository URLs, and CI workflows
Updated repository URLs and dependency versions in README.md for consistency and updated the Javadoc workflow to use Gradle instead of Maven. Added a new Gradle CI workflow for building the project and uploading artifacts.
1 parent 2494d9b commit 07824e0

3 files changed

Lines changed: 71 additions & 7 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Java CI with Gradle
10+
11+
on:
12+
push:
13+
branches:
14+
- master
15+
- main
16+
17+
pull_request:
18+
branches:
19+
- master
20+
- main
21+
22+
jobs:
23+
build:
24+
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout sources
29+
uses: actions/checkout@v4
30+
31+
- name: Set up JDK 21
32+
uses: actions/setup-java@v4
33+
with:
34+
distribution: temurin
35+
java-version: 21
36+
cache: gradle
37+
38+
39+
- name: Setup Gradle
40+
uses: gradle/actions/setup-gradle@v4
41+
42+
- name: Build with Gradle
43+
run: ./gradlew build
44+
45+
- uses: actions/upload-artifact@v4
46+
with:
47+
name: VaultUnlockedAPI
48+
path: |
49+
**/build/libs/*.jar

.github/workflows/javadoc.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,27 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write # if you have a protection rule on your repository, you'll need to give write permission to the workflow.
14+
1415
steps:
16+
- name: Checkout sources
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 21
20+
uses: actions/setup-java@v4
21+
with:
22+
distribution: temurin
23+
java-version: 21
24+
cache: gradle
25+
26+
27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@v4
29+
1530
- name: Deploy JavaDoc 🚀
1631
uses: MathieuSoysal/Javadoc-publisher.yml@v3.0.2
1732
with:
1833
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1934
javadoc-branch: gh-pages
20-
java-version: 8
35+
java-version: 21
2136
target-folder: javadoc # url will be https://<username>.github.io/<repo>/javadoc, This can be left as nothing to generate javadocs in the root folder.
22-
project: maven
37+
project: gradle

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ How to include the API with Maven:
55
```xml
66
<repositories>
77
<repository>
8-
<id>codemc-repo</id>
9-
<url>https://repo.codemc.org/repository/maven-public</url>
8+
<id>codemc-creatorfromhell</id>
9+
<url>https://repo.codemc.io/repository/creatorfromhell/</url>
1010
</repository>
1111
</repositories>
1212

1313
<dependencies>
1414
<dependency>
1515
<groupId>net.milkbowl.vault</groupId>
1616
<artifactId>VaultUnlockedAPI</artifactId>
17-
<version>2.11</version><!-- Validate this is the most recent version from the CI -->
17+
<version>2.15</version><!-- Validate this is the most recent version from the CI -->
1818
<scope>provided</scope>
1919
</dependency>
2020
</dependencies>
@@ -23,10 +23,10 @@ How to include the API with Maven:
2323
How to include the API with Gradle:
2424
```groovy
2525
repositories {
26-
maven { url 'https://repo.codemc.org/repository/maven-public' }
26+
maven { url 'https://repo.codemc.io/repository/creatorfromhell/' }
2727
}
2828
dependencies {
29-
compileOnly "net.milkbowl.vault:VaultUnlockedAPI:2.11"
29+
compileOnly "net.milkbowl.vault:VaultUnlockedAPI:2.15"
3030
}
3131
```
3232

0 commit comments

Comments
 (0)