Skip to content

Commit

Permalink
Bump to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ledoyen committed Jul 13, 2024
1 parent b112ec4 commit ca8196d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ charset = utf-8
indent_style = space
indent_size = 4

[*.yml]
indent_size = 2
37 changes: 22 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,27 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- uses: actions/cache@v2
- uses: actions/checkout@v4

- uses: actions/setup-java@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- run: |
java -version
echo $JAVA_HOME
- run: ./mvnw install
- uses: codecov/codecov-action@v1
distribution: temurin
java-version: '21'
cache: maven

- name: Debug JDK info
run: |
java -version
./mvnw -version
echo $JAVA_HOME
- name: Run tests
run: ./mvnw verify

- uses: codecov/codecov-action@v4.5.0
env:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
if: ${{ env.codecov_token != '' }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Template for Maven based exercises

[![build workflow](https://github.com/lernejo/maven_starter_template/actions/workflows/build.yml/badge.svg)](https://github.com/lernejo/maven_starter_template/actions)
[![codecov](https://codecov.io/gh/lernejo/maven_starter_template/branch/main/graph/badge.svg)](https://codecov.io/gh/lernejo/maven_starter_template)
[![build workflow](./../../actions/workflows/build.yml/badge.svg)](./../../actions/workflows/build.yml)

## Build the project

The project requires a JDK 17 (recommended distribution is Temurin from [Adoptium](https://adoptium.net/)).
The project requires a JDK 21 (recommended distribution is Temurin from [Adoptium](https://adoptium.net/)).

From there, simply use the Maven wrapper to launch all tests (unit tests & integration tests).

Expand Down
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
<maven.compiler.parameters>true</maven.compiler.parameters>

<junit.version>5.9.1</junit.version>
<assertj.version>3.23.1</assertj.version>
<junit.version>5.10.3</junit.version>
<assertj.version>3.26.3</assertj.version>

<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.3.1</maven-surefire-plugin.version>
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
</properties>

<dependencies>
Expand Down

0 comments on commit ca8196d

Please sign in to comment.