Bump to Java 17
This commit is contained in:
4
.github/workflows/pr-pipeline.yml
vendored
4
.github/workflows/pr-pipeline.yml
vendored
@@ -14,10 +14,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up JDK 16
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: '16'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- name: Build with Maven (compile -> test -> package)
|
- name: Build with Maven (compile -> test -> package)
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#
|
#
|
||||||
# Cosmic JAR creation stage
|
# Cosmic JAR creation stage
|
||||||
#
|
#
|
||||||
FROM maven:3.8.1-openjdk-16 AS jar
|
FROM maven:3.8.4-openjdk-17 AS jar
|
||||||
|
|
||||||
# Build in a separated location which won't have permissions issues.
|
# Build in a separated location which won't have permissions issues.
|
||||||
WORKDIR /opt/cosmic
|
WORKDIR /opt/cosmic
|
||||||
@@ -21,7 +21,7 @@ RUN mvn -f ./pom.xml clean package -Dmaven.test.skip -T 1C
|
|||||||
#
|
#
|
||||||
# Server creation stage
|
# Server creation stage
|
||||||
#
|
#
|
||||||
FROM openjdk:16
|
FROM openjdk:17.0.2
|
||||||
|
|
||||||
# Host the server in a location that won't have permissions issues.
|
# Host the server in a location that won't have permissions issues.
|
||||||
WORKDIR /opt/server
|
WORKDIR /opt/server
|
||||||
|
|||||||
2
pom.xml
2
pom.xml
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<java.version>16</java.version>
|
<java.version>17</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
<maven.compiler.target>${java.version}</maven.compiler.target>
|
<maven.compiler.target>${java.version}</maven.compiler.target>
|
||||||
<mainClass>net.server.Server</mainClass>
|
<mainClass>net.server.Server</mainClass>
|
||||||
|
|||||||
Reference in New Issue
Block a user