(chores) ci: bump Java next builds to 18
@@ -31,22 +31,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- java: [ '15' ]
+ java: [ '18' ]
steps:
- - uses: actions/checkout@v2.4.0
+ - uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
- uses: AdoptOpenJDK/install-jdk@v1
+ uses: actions/setup-java@v3
with:
- version: ${{ matrix.java }}
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
+ distribution: 'temurin'
+ java-version: ${{ matrix.java }}
+ cache: 'maven'
# first command builds the source check module,
- - name: build tools
+ - name: Build tools
run: |
./mvnw ${MAVEN_ARGS} \
-DskipTests \
@@ -56,7 +51,7 @@ jobs:
clean install
# second one source check and install :camel-kafka-connector-generator-maven-plugin
# this is needed to add maven plugin metadata to it,
- - name: build connector-generator-plugin
+ - name: Build connector-generator-plugin
run: |
./mvnw ${MAVEN_ARGS} \
-Dcheckstyle.failOnViolation=true \
@@ -67,7 +62,7 @@ jobs:
-pl :camel-kafka-connector \
clean install
# third command source check everything else but :camel-kafka-connector-generator-maven-plugin
- - name: build and itests
+ - name: Build and itests
run: |
./mvnw ${MAVEN_ARGS} \
-Dfailsafe.rerunFailingTestsCount=2 \
@@ -79,7 +74,7 @@ jobs:
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120 \
-pl '!:camel-kafka-connector-generator-maven-plugin' \
clean test
- - name: archive logs
+ - name: Archive logs
uses: actions/upload-artifact@v2
if: always()
with:
