Skip to content

Commit

Permalink
Trying build on JDK 12.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrzcinski committed Jan 24, 2024
1 parent 0ece04b commit fc7a598
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
# Grab the newest version of repo
- uses: actions/checkout@v2
# Set JDK to 11
- name: Set up JDK 11
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 12
# Building with MVN
- name: Build with Maven
run: mvn -B clean compile install package --file pom.xml
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 12
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 12
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 12
- name: Build with Maven
run: mvn -B package --file pom.xml
2 changes: 1 addition & 1 deletion .github/workflows/surefire-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/setup-java@v2
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '11'
java-version: '12'
- name: Run Tests
run: mvn test --batch-mode --fail-at-end
- name: Publish Test Report
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ RUN mvn dependency:go-offline -B
# RUN mvn package
RUN mvn clean install package

FROM openjdk:11-jre-slim-bullseye
FROM adoptopenjdk/openjdk12-openj9:latest
# Add the service itself
COPY --from=maven target/hell-on-world-rest-*.jar /usr/share/javalin/

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Represents dockerized Javalin REST microsevice with GET example in.
https://javalin.io/tutorials/docker

# Parts:
- JDK 11
- JDK 12
- Javalin
- Docker

Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>12</maven.compiler.source>
<maven.compiler.target>12</maven.compiler.target>
<maven.compiler.plugin>2.4</maven.compiler.plugin>
<maven.shade.plugin>3.1.0</maven.shade.plugin>
<dockerfile.maven.plugin>1.2.2</dockerfile.maven.plugin>
Expand Down
4 changes: 2 additions & 2 deletions workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.11
- name: Set up JDK 1.12
uses: actions/setup-java@v1
with:
java-version: 11
java-version: 12
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify

0 comments on commit fc7a598

Please sign in to comment.