Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gradle builds: define Java language version #83

Open
MoritzKeppler opened this issue May 25, 2021 · 3 comments
Open

gradle builds: define Java language version #83

MoritzKeppler opened this issue May 25, 2021 · 3 comments

Comments

@MoritzKeppler
Copy link
Collaborator

MoritzKeppler commented May 25, 2021

We should set a fixed java language version. Best would be to stick to latest LTS, i.e. java11.
Applies for gradle builds and docker file creation.
Moritz Keppler [email protected], Daimler TSS GmbH, legal info/Impressum

@DominikPinsel
Copy link
Collaborator

Another note from me:
I just saw that the java version for the external:nifi:processors project needs to be java8.

If I compile it with java11 and copy it to my local nifi docker image I get the following error:
Failure to launch NiFi due to java.lang.UnsupportedClassVersionError: microsoft/dagx/transfer/nifi/processors/FetchS3Object has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

@jimmarino
Copy link
Collaborator

Yeah, unfortunately that seems to be one of the strange limitations with NiFi at the moment.

@paullatzelsperger
Copy link
Collaborator

that's why in the CI build we use Java 8 as base image for the custom Nifi image. Check .github/workflows/build-docker.yaml, Line 36ff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants