Skip to content

Commit 6fce414

Browse files
authored
Merge pull request #664 from hazendaz/master
Build updates and add analysis properties example to readme
2 parents fd16c1e + 0979cc5 commit 6fce414

File tree

4 files changed

+1007
-983
lines changed

4 files changed

+1007
-983
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
name: Java CI
22

3-
on: [push, pull_request]
3+
on: [workflow_dispatch, push, pull_request]
44

55
jobs:
66
test:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-latest, macOS-latest, windows-latest]
11-
java: [11, 17, 21]
10+
os: [ubuntu-latest, macos-latest, windows-latest]
11+
java: [11, 17, 21, 22-ea]
12+
distribution: ['temurin']
1213
fail-fast: false
1314
max-parallel: 4
1415
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}
1516

1617
steps:
1718
- uses: actions/checkout@v4
18-
- name: Set up JDK
19+
- name: Set up JDK ${{ matrix.java }} ${{ matrix.distribution }}
1920
uses: actions/setup-java@v3
2021
with:
2122
java-version: ${{ matrix.java }}
22-
distribution: 'zulu'
23+
distribution: ${{ matrix.distribution }}
2324
- name: Test with Maven
2425
run: ./mvnw test -B -V --no-transfer-progress -D"license.skip=true"

.github/workflows/sonatype.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/setup-java@v3
1616
with:
1717
java-version: 21
18-
distribution: 'zulu'
18+
distribution: zulu
1919
- name: Deploy to Sonatype
2020
run: ./mvnw deploy -DskipTests -B -V --no-transfer-progress --settings ./.mvn/settings.xml -Dlicense.skip=true
2121
env:

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,21 @@ If using groovy with same group id (```org.codehaus.groovy 3.x``` or before or `
8585
## Eclipse m2e Integration ##
8686

8787
The plugin cycles controlled by Eclipse require compilation phase for m2e without further help. This plugin runs verify and during site generation. Therefore Eclipse m2e will show up but not do anything with this plugin alone. In order to have proper execution within Ecipse m2e, use [m2e-code-quality](https://github.com/m2e-code-quality/m2e-code-quality) plugin for spotbugs.
88+
89+
## Analysis Properties ##
90+
91+
Is there some way to set the [Analysis Properties](https://spotbugs.readthedocs.io/en/stable/analysisprops.html) when using the maven plugin?
92+
93+
Analysis properties are passed as Java system properties, so they can be set in the <jvmArgs> configuration element.
94+
95+
E.g. to set the findbugs.assertionmethods analyzer property:
96+
97+
```
98+
<plugin>
99+
<groupId>com.github.spotbugs</groupId>
100+
<artifactId>spotbugs-maven-plugin</artifactId>
101+
<configuration>
102+
<jvmArgs>-Dfindbugs.assertionmethods=org.apache.commons.lang3.Validate.notNull</jvmArgs>
103+
</configuration?
104+
</plugin>
105+
```

0 commit comments

Comments
 (0)