Skip to content

Commit

Permalink
Merge branch 'pomconfig' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
olyutorskii committed Oct 4, 2023
2 parents 481b880 + 95598ca commit 7e048f9
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
40 changes: 14 additions & 26 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,48 +19,36 @@ jobs:

strategy:
matrix:
java: [ 8, 11, 17 ]
java: [ 11, 17, 20 ]
name: Java ${{ matrix.java }} building
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
cache: 'maven'
- name: Build with Maven
run: mvn --show-version -B package --file pom.xml
run: mvn --show-version --batch-mode -Dshow=private package site --file pom.xml


build8:

buildSite:
needs: build

runs-on: ubuntu-latest

strategy:
matrix:
java: [ 11, 17 ]
name: Java ${{ matrix.java }} siting
name: Java 8 building
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- name: Build with Maven
run: mvn --show-version -B site --file pom.xml

run: mvn --show-version --batch-mode package --file pom.xml

### EOF ###
20 changes: 7 additions & 13 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,29 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.1.0
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 17
cache: 'maven'

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
uses: actions/configure-pages@v3

- name: Build document with Maven
run: mvn --show-version -B site --file pom.xml
run: mvn --show-version --batch-mode site --file pom.xml

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
# Upload Maven-report repository
path: './target/site/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v2

### EOF ###
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*.swp
*.orig
# core
*.log


### macOS
Expand All @@ -30,6 +31,7 @@ Thumbs.db

### JDK

*.class
hs_err_pid*


Expand Down Expand Up @@ -69,9 +71,25 @@ hs_err_pid*
*.ipr


### BlueJ files

*.ctxt


### Visual Studio Code

/.vscode/


### Package Files

*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar


### EOF ###
3 changes: 2 additions & 1 deletion config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<!--
Checkstyle modules
for Checkstyle 8.45 or later
for Checkstyle 10.10.0 or later
[ https://checkstyle.org/ ]
Expand All @@ -30,6 +30,7 @@
<!--module name="SuppressionFilter" /-->
<!--module name="SuppressionSingleFilter" /-->
<module name="SuppressWarningsFilter" />
<module name="SuppressWithNearbyTextFilter" />
<module name="SuppressWithPlainTextCommentFilter" />


Expand Down
2 changes: 1 addition & 1 deletion config/pmd/pmdrules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<rule ref="category/java/errorprone.xml" >
<exclude name="AvoidLiteralsInIfCondition" />
<exclude name="BeanMembersShouldSerialize" />
<exclude name="NonSerializableClass" />
</rule>

<rule ref="category/java/multithreading.xml" />
Expand Down

0 comments on commit 7e048f9

Please sign in to comment.