Skip to content

Update Java version to 17 in build and release workflows, and add Jav… #10

Update Java version to 17 in build and release workflows, and add Jav…

Update Java version to 17 in build and release workflows, and add Jav… #10

Workflow file for this run

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