Skip to content

Commit

Permalink
CI/Maven Maintenance (#27)
Browse files Browse the repository at this point in the history
* Update GHA config

* Try making Surefire to behave

* Properly move Surefire plugin definition

* Update dependencies
  • Loading branch information
syoon2 authored Mar 17, 2024
1 parent 812618f commit 94606c1
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 18 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
publish:
runs-on: ubuntu-latest
needs: build
if: github.repository == 'tomnelson/jungrapht-visualization'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Maven Snapshot Repository
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
Expand All @@ -35,4 +38,4 @@ jobs:
run: mvn --batch-mode deploy
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
7 changes: 7 additions & 0 deletions jungrapht-layout/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,11 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
7 changes: 7 additions & 0 deletions jungrapht-visualization/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
23 changes: 10 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
<timezone>-5</timezone>
</developer>
</developers>
<prerequisites>
<maven>3.1.1</maven>
</prerequisites>
<modules>
<module>jungrapht-visualization</module>
<module>jungrapht-layout</module>
Expand All @@ -57,22 +54,22 @@
</distributionManagement>
<properties>
<cobertura.plugin.version>2.7</cobertura.plugin.version>
<compiler.plugin.version>3.11.0</compiler.plugin.version>
<compiler.plugin.version>3.12.1</compiler.plugin.version>
<doclint>none</doclint>
<fmt.plugin.version>1.8.0</fmt.plugin.version>
<google-java-format.version>1.3</google-java-format.version>
<gpg.plugin.version>1.6</gpg.plugin.version>
<jar.plugin.version>2.6</jar.plugin.version>
<jar.plugin.version>3.3.0</jar.plugin.version>
<java.version>17</java.version>
<javadoc.plugin.version>3.1.0</javadoc.plugin.version>
<jgrapht.version>1.5.1</jgrapht.version>
<javadoc.plugin.version>3.6.3</javadoc.plugin.version>
<jgrapht.version>1.5.2</jgrapht.version>
<junit.version>5.10.2</junit.version>
<jxr.plugin.version>2.5</jxr.plugin.version>
<pmd.plugin.version>3.12.0</pmd.plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<release.plugin.version>2.5.3</release.plugin.version>
<source.plugin.version>3.0.1</source.plugin.version>
<source.plugin.version>3.3.0</source.plugin.version>
<surefire.plugin.version>3.2.5</surefire.plugin.version>
<version.logback>1.2.10</version.logback>
<version.slf4j>1.7.32</version.slf4j>
Expand Down Expand Up @@ -129,7 +126,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler.plugin.version}</version>
<configuration>
<release>17</release>
<release>${java.version}</release>
</configuration>
</plugin>
<plugin>
Expand All @@ -151,6 +148,10 @@
<artifactId>maven-site-plugin</artifactId>
<version>3.8.2</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
Expand Down Expand Up @@ -204,10 +205,6 @@
<linkXref>true</linkXref>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire.plugin.version}</version>
</plugin>
</plugins>
</reporting>
<profiles>
Expand Down

0 comments on commit 94606c1

Please sign in to comment.