fix: spotbugs plugin is not loaded from v5.0.15 #1512
Workflow file for this run
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: Java CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
gradle: ['7.0', '8.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: npm | |
if: matrix.gradle == '7.0' | |
- name: Gradle Wrapper Validation | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build with Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: build -Dsnom.test.functional.gradle=${{ matrix.gradle }} --scan | |
- run: | | |
echo Verifying the java version used in class files... | |
cd build/classes/groovy/main | |
javap -v com.github.spotbugs.snom.SpotBugsPlugin | grep -q 'major version: 52' | |
- name: Run Semantic Release | |
run: | | |
echo "gradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }}" > ~/.gradle/gradle.properties | |
echo "gradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}" >> ~/.gradle/gradle.properties | |
rm -rf build/libs/*.jar | |
npm ci | |
npx semantic-release | |
if: matrix.gradle == '7.0' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
- name: Run SonarQube Scanner | |
run: | | |
if [ "$SONAR_LOGIN" != "" ]; then | |
./gradlew sonarqube -Dsonar.login=$SONAR_LOGIN --no-daemon | |
fi | |
if: matrix.gradle == '7.0' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_LOGIN: ${{ secrets.SONAR_LOGIN }} | |
- uses: actions/upload-artifact@v3 | |
if: always() | |
with: | |
name: reports (Gradle ${{ matrix.gradle }}) | |
path: build/reports |