Skip to content

Commit 06516d6

Browse files
author
Oribuin
committed
update workflows & compile with javadocs
1 parent 8a6d3ed commit 06516d6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/gradle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Build
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v3
1616
- name: Restore gradle.properties
1717
env:
1818
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
@@ -21,13 +21,13 @@ jobs:
2121
mkdir -p ~/.gradle/
2222
echo "GRADLE_USER_HOME=${HOME}/.gradle" >> $GITHUB_ENV
2323
echo "${GRADLE_PROPERTIES}" > ~/.gradle/gradle.properties
24-
- name: Set up JDK 17
24+
- name: Set up JDK 21
2525
uses: actions/[email protected]
2626
with:
2727
distribution: 'temurin'
28-
java-version: '17'
28+
java-version: '21'
2929
- name: Cache
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
with:
3232
path: |
3333
~/.gradle/caches
@@ -43,4 +43,4 @@ jobs:
4343
uses: actions/upload-artifact@v4
4444
with:
4545
name: Fishing
46-
path: ./build/libs/Fishing-**.jar
46+
path: ./build/libs/Fishing-**.jar

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ java {
1111
sourceCompatibility = JavaVersion.VERSION_17
1212
targetCompatibility = JavaVersion.VERSION_17
1313

14+
withJavadocJar()
15+
withSourcesJar()
1416
disableAutoTargetJvm()
1517
toolchain {
1618
languageVersion.set(JavaLanguageVersion.of(21))

0 commit comments

Comments
 (0)