Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-20 01:40:06 +01:00
Update GitHub actions matching latest Java requirements
Dieser Commit ist enthalten in:
Ursprung
aa0ad16a1b
Commit
706ac35063
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -6,17 +6,16 @@ jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
java: ["8", "11"]
|
||||
os: ["ubuntu-latest"]
|
||||
runs-on: "${{ matrix.os }}"
|
||||
steps:
|
||||
- name: "Checkout Repository"
|
||||
uses: "actions/checkout@v2.3.4"
|
||||
- name: "Setup JDK ${{ matrix.java }}"
|
||||
- name: "Setup JDK 11"
|
||||
uses: "actions/setup-java@v2"
|
||||
with:
|
||||
distribution: "adopt"
|
||||
java-version: "${{ matrix.java }}"
|
||||
java-version: "11"
|
||||
- name: "Cache Gradle"
|
||||
uses: "actions/cache@v2.1.4"
|
||||
with:
|
||||
@ -30,9 +29,9 @@ jobs:
|
||||
uses: "actions/cache@v2.1.4"
|
||||
with:
|
||||
path: "~/.m2/repository"
|
||||
key: "${{ runner.os }}-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}"
|
||||
key: "${{ runner.os }}-11-maven-${{ hashFiles('**/pom.xml') }}"
|
||||
restore-keys: |
|
||||
"${{ runner.os }}-${{ matrix.java }}-maven-"
|
||||
"${{ runner.os }}-11-maven-"
|
||||
- name: "Cache BuildTools Decompiled Code"
|
||||
uses: "actions/cache@v2.1.4"
|
||||
with:
|
||||
@ -40,7 +39,7 @@ jobs:
|
||||
key: "${{ runner.os }}-buildtools"
|
||||
restore-keys: |
|
||||
"${{ runner.os }}-buildtools"
|
||||
- name: "Test Enviornment"
|
||||
- name: "Test Environment"
|
||||
run: "echo $GITHUB_WORKSPACE"
|
||||
- name: "Download BuildTools"
|
||||
run: "wget https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar"
|
||||
@ -54,5 +53,3 @@ jobs:
|
||||
run: |
|
||||
rm -f ~/.gradle/caches/modules-2/modules-2.lock
|
||||
rm -f ~/.gradle/caches/modules-2/gc.properties
|
||||
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
Compiling
|
||||
=========
|
||||
|
||||
You can compile FastAsyncWorldEdit as long as you have some version of Java greater than or equal to 8 installed. Gradle will download JDK 8 specifically if needed,
|
||||
You can compile FastAsyncWorldEdit as long as you have some version of Java greater than or equal to 11 installed. Gradle will download JDK 11 specifically if needed,
|
||||
but it needs some version of Java to bootstrap from.
|
||||
|
||||
Note that if you have JRE 8 installed, Gradle will currently attempt to use that to compile, which will not work. It is easiest to uninstall JRE 8 and replace it with JDK 8.
|
||||
|
||||
You can get the JDK 8 [here](https://adoptopenjdk.net/?variant=openjdk8&jvmVariant=hotspot).
|
||||
You can get the JDK 11 [here](https://adoptopenjdk.net/?variant=openjdk11&jvmVariant=hotspot).
|
||||
|
||||
The build process uses Gradle, which you do *not* need to download. FastAsyncWorldEdit is a multi-module project with three active modules:
|
||||
|
||||
|
@ -8,7 +8,7 @@ ask that you make note of the following guidelines.
|
||||
* **Follow the [Oracle coding conventions](http://www.oracle.com/technetwork/java/codeconv-138413.html).**
|
||||
We can't stress this enough; if your code has notable issues, it may delay
|
||||
the process significantly.
|
||||
* **Target Java 8 for source and compilation.** Make sure to mark methods with
|
||||
* **Target Java 11 for source and compilation.** Make sure to mark methods with
|
||||
` @Override` that override methods of parent classes, or that implement
|
||||
methods of interfaces.
|
||||
* **Use only spaces for indentation.** Our indents are 4-spaces long, and tabs
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren