Skip to content

Commit

Permalink
Merge pull request #2059 from hazendaz/master
Browse files Browse the repository at this point in the history
Use directory plugin fork and update github actions
  • Loading branch information
hazendaz authored Sep 28, 2023
2 parents c28291a + 5c369dd commit e92cf13
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.net.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
name: Test .net ${{ matrix.os }}

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Set up environment
run: ./bootstrap.cmd
- name: Test with .Net
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
strategy:
matrix:
os: [windows-2019, windows-latest]
java: [17, 20, 21-ea]
java: [17, 21]
fail-fast: false
max-parallel: 4
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}

steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coveralls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
if: github.repository_owner == 'waffle-OFF'
runs-on: windows-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
if: github.repository_owner == 'waffle'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: zulu
- name: Analyze with Coverity
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
if: github.repository_owner == 'waffle' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: zulu
- uses: webfactory/ssh-agent@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
if: github.repository_owner == 'waffle'
runs-on: windows-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: zulu
- name: Analyze with SonarCloud
run: ./mvnw verify sonar:sonar -B -D"license.skip=true" -D"sonar.projectKey=Waffle_waffle" -D"sonar.organization=waffle" -D"sonar.host.url=https://sonarcloud.io" -D"sonar.login=$SONAR_TOKEN"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonatype.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
if: github.repository_owner == 'waffle' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
java-version: 21
distribution: zulu
- name: Deploy to Sonatype
run: ./mvnw deploy -DskipTests -B -D"license.skip=true" --settings ./.mvn/settings.xml
Expand Down
25 changes: 5 additions & 20 deletions Source/JNA/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<maven.compiler.testTarget>${java.test.version}</maven.compiler.testTarget>
<maven.compiler.testRelease>${java.test.release.version}</maven.compiler.testRelease>

<maven.min-version>3.9.1</maven.min-version>
<maven.min-version>3.9.4</maven.min-version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
Expand Down Expand Up @@ -192,7 +192,7 @@
<dependency.plugin>3.6.0</dependency.plugin>
<dependency-check.plugin>8.4.0</dependency-check.plugin>
<deploy.plugin>3.1.1</deploy.plugin>
<directory.plugin>1.0</directory.plugin>
<directory.plugin>1.1.0</directory.plugin>
<enforcer.plugin>3.4.1</enforcer.plugin>
<formatter.plugin>2.23.0</formatter.plugin>
<git-commit-id.plugin>6.0.0</git-commit-id.plugin>
Expand Down Expand Up @@ -910,7 +910,7 @@

<!-- Find maven root -->
<plugin>
<groupId>org.commonjava.maven.plugins</groupId>
<groupId>com.github.hazendaz.maven</groupId>
<artifactId>directory-maven-plugin</artifactId>
<version>${directory.plugin}</version>
</plugin>
Expand Down Expand Up @@ -1061,7 +1061,7 @@

<!-- Find maven root -->
<plugin>
<groupId>org.commonjava.maven.plugins</groupId>
<groupId>com.github.hazendaz.maven</groupId>
<artifactId>directory-maven-plugin</artifactId>
<executions>
<execution>
Expand Down Expand Up @@ -1365,22 +1365,7 @@
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.commonjava.maven.plugins</groupId>
<artifactId>directory-maven-plugin</artifactId>
<versionRange>[${directory.plugin},)</versionRange>
<goals>
<goal>highest-basedir</goal>
</goals>
</pluginExecutionFilter>
<action>
<execute>
<runOnConfiguration>true</runOnConfiguration>
<runOnIncremental>true</runOnIncremental>
</execute>
</action>
</pluginExecution>
<!-- Continue to run license plugin with m2e, its in plugin now but disabled there so this ensures it runs. -->
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.mycila</groupId>
Expand Down

0 comments on commit e92cf13

Please sign in to comment.