fix: 修复较高Java版本无法正确找到javax相关的包 #314
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Snapshot Build Java CI with Maven | |
on: | |
push: | |
branches-ignore: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
build: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '8' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build with Maven | |
run: mvn -B package --file pom.xml -DsnapshotBuild=true -DskipTests=false | |
- name: Upload Snapshot Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Shaded JAR | |
path: target/kookbc-*.jar | |