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

Test Java 17 #675

Closed
Jeeppler opened this issue Jul 1, 2021 · 9 comments
Closed

Test Java 17 #675

Jeeppler opened this issue Jul 1, 2021 · 9 comments

Comments

@Jeeppler
Copy link
Member

Jeeppler commented Jul 1, 2021

Java 17 will be a long term release (LTS) candidate. Java 17 is expected to be released in September 2021.

For more information have a look at: http://openjdk.java.net/projects/jdk/17/

@Jeeppler
Copy link
Member Author

Jeeppler commented Sep 3, 2021

Java 17 will be released on the 14th of September 2021.

@Jeeppler
Copy link
Member Author

Java 17 has been released on the 14th of September 2021:

@Vivek-Prajapatii
Copy link
Contributor

Can you help me in this

@Jeeppler
Copy link
Member Author

Jeeppler commented Jan 3, 2022

First, thanks for being interested in this topic.

This issue requires on to test whether SecHub can be run and/or build with Java 17. To run / build SecHub using Java follow the instructions of the Quickstart Guide: https://daimler.github.io/sechub/latest/sechub-quickstart-guide.html.

Please first make sure to use Java 11 as we already tested it with Java 11 and it should work well: #187.

After using Java 11, switch your Java version to 17 and try to build it. In case it fails, report the problems this issue here.

My assumptions are:

  1. One can run SecHub with Java 17 just fine
  2. The build will fail, because of Gradle Switch to Gradle 7.4 #495.

However, just give it a try.

NOTE: All of this manual work is required, because we do not do an automatic matrix build with different Java versions.

@Jeeppler
Copy link
Member Author

Jeeppler commented Jan 3, 2022

Please have a look at the Java 16 test, you might run into the same issue: #613.

@Jeeppler
Copy link
Member Author

Jeeppler commented Mar 8, 2022

Java 17 support was added in Gradle 7.3. Depends on: #495 and #1085.

@Jeeppler
Copy link
Member Author

Jeeppler commented Jun 7, 2022

This can be tested with additional runtimes from the Adoptium Marketplace: https://adoptium.net/marketplace/.
For example, using IBMs Semeru Runtimes OpenJ9.

@Jeeppler
Copy link
Member Author

Eclipse Adoptium provides APIs for:

those can be used to get the Java binary releases for OpenJ9 and Temurin.

@Jeeppler
Copy link
Member Author

Jeeppler commented Nov 9, 2022

Test: Debian Container

Semeru Open:

The Semeru Open runtime 17 (Eclipse OpenJ9 build) can be used to run and build SecHub.

However, during build the following error appears:

#15 60.45 > Task :sechub-server:ensureLocalhostCertificate
#15 60.45 Start creating localhost certificate
#15 60.45 dev-base.sh: line 24: keytool: command not found
#15 60.45 Created file /build/sechub/sechub-server/src/main/resources/certificates-untracked/generated-dev-localhost-keystore.p1

Apparently, there is no keytool command available.

Temurin 17:

Works

OpenJDK (Debian package):

Works

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

No branches or pull requests

2 participants