mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-22 02:26:00 +01:00
Merge branch 'fix/gh-action'
This commit is contained in:
commit
a665fb377d
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -19,18 +19,15 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0 # needed for versioning
|
||||
- name: Set up JDK 1.17
|
||||
uses: actions/setup-java@v1
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: "${{ runner.os }}-bluemap-${{ hashFiles('**/*.gradle*') }}"
|
||||
restore-keys: |
|
||||
${{ runner.os }}-bluemap-
|
||||
distribution: 'temurin'
|
||||
java-version: |
|
||||
11
|
||||
16
|
||||
17
|
||||
cache: 'gradle'
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew clean spotlessCheck test build
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
19
.github/workflows/publish.yml
vendored
19
.github/workflows/publish.yml
vendored
@ -11,18 +11,15 @@ jobs:
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0 # needed for versioning
|
||||
- name: Set up JDK 1.17
|
||||
uses: actions/setup-java@v1
|
||||
- name: Set up Java
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: "${{ runner.os }}-bluemap-${{ hashFiles('**/*.gradle*') }}"
|
||||
restore-keys: |
|
||||
${{ runner.os }}-bluemap-
|
||||
distribution: 'temurin'
|
||||
java-version: |
|
||||
11
|
||||
16
|
||||
17
|
||||
cache: 'gradle'
|
||||
- name: Build with Gradle
|
||||
env:
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
|
@ -29,6 +29,10 @@ def javaTarget = 16
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.toVersion(javaTarget)
|
||||
targetCompatibility = JavaVersion.toVersion(javaTarget)
|
||||
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
minecraft {
|
||||
|
Loading…
Reference in New Issue
Block a user