Skip to content

Commit

Permalink
Dropped java 8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDutchMC committed Feb 8, 2021
1 parent d771768 commit cbe68c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,46 +28,6 @@ jobs:
outputs:
release_upload_url: ${{ steps.export_vars.outputs.release_upload_url }}

build-java-8:
needs: create-release
runs-on: ubuntu-latest
steps:
#Checkout
- uses: actions/checkout@v2
#Setup Java 8
- name: Set up Java 8
uses: actions/setup-java@v1
with:
java-version: 1.8

#Apply permissions for Gradle, so that ./gradlew can run
- name: Grant execute permission for gradlew
run: chmod +x gradlew

#Build the JAR
- name: Build with Gradle
run: ./gradlew ghActions

#Extract version number
- name: Extract version number
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

#Extract repository name
- name: Extract repository name
run: echo "REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//")" >> $GITHUB_ENV

#Attach compiled JAR to Release
- name: Attach JAR to Release
id: upload_release_asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.release_upload_url }}
asset_path: actions/output.jar
asset_name: ${{ env.REPOSITORY_NAME }}-${{ env.RELEASE_VERSION }}-RELEASE-JAVA-8.jar
asset_content_type: application/java-

build-java-11:
needs: create-release
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies {
//Dev only:
//compileOnly 'nl.thedutchmc:dutchycore:0.0.15'
//bug in jitpack, cant use nl.thedutchmc here :/
compileOnly 'com.github.DutchyPlugins:Dutchycore:0.0.15-R2'
compileOnly 'com.github.DutchyPlugins:Dutchycore:0.0.15-R3'
compileOnly 'org.spigotmc:spigot-api:1.16.5-R0.1-SNAPSHOT'
}

Expand Down

0 comments on commit cbe68c0

Please sign in to comment.