You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/02/10 19:55:52 UTC

(plc4x) branch fix/enum-discriminators updated: chore: Updated the java version in the Dockerfile to Java 21 and fine tuned the rat-exclusions.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch fix/enum-discriminators
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/fix/enum-discriminators by this push:
     new c54d791495 chore: Updated the java version in the Dockerfile to Java 21 and fine tuned the rat-exclusions.
c54d791495 is described below

commit c54d7914955c8cff7e8db15460f73b7da09756d8
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Sat Feb 10 20:55:44 2024 +0100

    chore: Updated the java version in the Dockerfile to Java 21 and fine tuned the rat-exclusions.
---
 Dockerfile |  2 +-
 pom.xml    | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 1ecd1c7271..5bf489002a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,7 +20,7 @@
 # This is the image we'll use to execute the build (and give it the name 'build').
 # (This image is based on Ubuntu)
 # Fixed version of this in order to have a fixed JDK version
-FROM azul/zulu-openjdk:17 as build
+FROM azul/zulu-openjdk:21 as build
 
 # Install some stuff we need to run the build
 RUN apt update -y
diff --git a/pom.xml b/pom.xml
index 54716cddb8..923be83040 100644
--- a/pom.xml
+++ b/pom.xml
@@ -828,6 +828,17 @@
             <!-- Exclude files generated by the go build system -->
             <exclude>**/go.sum</exclude>
 
+            <!-- Exclude Node related files -->
+            <!--
+              This is actually only needed when having built with Java 19
+              or higher and then building with a version below 19. Because
+              in this case, the "ui" module is disabled, and the left-over
+              build files make rat complain.
+            -->
+            <exclude>ui/frontend/project/dist/**</exclude>
+            <exclude>ui/frontend/project/node/**</exclude>
+            <exclude>ui/frontend/project/node_modules/**</exclude>
+
             <exclude>.mvn/**</exclude>
 
             <!-- Exclude core dumps-->