From 7e3f7a56b5e61b3d4f7c1b64125a7d209e927305 Mon Sep 17 00:00:00 2001
From: Roman Barannyk <53909129+roman-barannyk@users.noreply.github.com>
Date: Wed, 5 Jul 2023 14:19:27 +0300
Subject: [PATCH] [CIRC-1830] Migrate to Java 17 (#1299)
* CIRC-1830 update module to 17 java version
* CIRC-1830 Update Jenkinsfile
* Revert "CIRC-1830 Update Jenkinsfile"
This reverts commit 184e5dbe1bfb63721b000f5e7a7b4ef3f0e1f217.
* CIRC-1830 Increase jacoco version
---
Dockerfile | 7 ++++++-
Jenkinsfile | 2 +-
pom.xml | 6 +++---
3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index ee4e673a5f..503650b787 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,9 @@
-FROM folioci/alpine-jre-openjdk11:latest
+FROM folioci/alpine-jre-openjdk17:latest
+
+# Install latest patch versions of packages: https://pythonspeed.com/articles/security-updates-in-docker/
+USER root
+RUN apk upgrade --no-cache
+USER folio
ENV VERTICLE_FILE mod-circulation.jar
diff --git a/Jenkinsfile b/Jenkinsfile
index 102e45c62c..bd5d61896a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -4,7 +4,7 @@ buildMvn {
mvnDeploy = true
doKubeDeploy = true
publishPreview = false
- buildNode = 'jenkins-agent-java11'
+ buildNode = 'jenkins-agent-java17'
doDocker = {
buildJavaDocker {
diff --git a/pom.xml b/pom.xml
index 763babd7bd..7fb47b21c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,7 +30,7 @@
2.19.0
UTF-8
UTF-8
- 1.18.24
+ 1.18.28
5.3.24
3.9.1
@@ -319,7 +319,7 @@
org.jacoco
jacoco-maven-plugin
- 0.8.6
+ 0.8.10
org/drools/compiler/lang/*
@@ -344,7 +344,7 @@
maven-compiler-plugin
3.8.1
- 11
+ 17
UTF-8