Skip to content

Commit

Permalink
MODSENDER-61 : Update to Java 17 mod-sender (folio-org#53)
Browse files Browse the repository at this point in the history
* MODSENDER-61 : Update to Java 17 mod-sender

* MODSENDER-61 : added apk upgrade
  • Loading branch information
nirmalr-shah authored Oct 11, 2023
1 parent c5ce9c2 commit 1edc1a4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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-sender-fat.jar

Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ buildMvn {
publishModDescriptor = 'yes'
mvnDeploy = 'yes'
doKubeDeploy = true
buildNode = 'jenkins-agent-java11'
buildNode = 'jenkins-agent-java17'

doDocker = {
buildJavaDocker {
publishMaster = 'yes'
healthChk = 'yes'
healthChkCmd = 'curl -sS --fail -o /dev/null http://localhost:8081/apidocs/ || exit 1'
healthChkCmd = 'wget --no-verbose --tries=1 --spider http://localhost:8081/admin/health || exit 1'
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
</licenses>

<properties>
<java.version>17</java.version>
<aspectj.version>1.9.19</aspectj.version>
<raml-module-builder.version>35.0.0</raml-module-builder.version>
<vertx.version>4.3.3</vertx.version>
<junit.version>4.13.1</junit.version>
Expand Down Expand Up @@ -114,7 +116,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>11</release>
<release>${java.version}</release>
<encoding>UTF-8</encoding>
<annotationProcessors>
<annotationProcessor>io.vertx.codegen.CodeGenProcessor</annotationProcessor>
Expand Down Expand Up @@ -158,12 +160,12 @@
</plugin>

<plugin>
<groupId>com.nickwongdev</groupId>
<groupId>dev.aspectj</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.12.6</version>
<version>1.13.1</version>
<configuration>
<verbose>true</verbose>
<complianceLevel>11</complianceLevel>
<release>${java.version}</release>
<includes>
<include>**/impl/*.java</include>
<include>**/*.aj</include>
Expand All @@ -189,12 +191,12 @@
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.9.6</version>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjtools</artifactId>
<version>1.9.6</version>
<version>${aspectj.version}</version>
</dependency>
</dependencies>
</plugin>
Expand Down

0 comments on commit 1edc1a4

Please sign in to comment.