Update Java version to 17 in build and release workflows, and add Jav… #10
This file contains hidden or 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: Java CI with Maven | |
| on: | |
| push: | |
| branches: [ "master", "main" ] | |
| pull_request: | |
| branches: [ "master", "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Depoyu Çek (Checkout) | |
| uses: actions/checkout@v4 | |
| - name: JDK 17 Kurulumu | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Maven ile Derle ve Test Et | |
| run: mvn -B package --file pom.xml | |
| - name: SpotBugs Analizi (Kod Kalitesi) | |
| run: mvn spotbugs:check | |
| continue-on-error: true | |
| - name: Artifact Yükle (Derlenen JAR) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: BenthRegionShield-DevBuild | |
| path: target/*.jar | |
| retention-days: 5 |