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

fix: set Java target version to 1.8 #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

candrews
Copy link

@candrews candrews commented Sep 7, 2022

By default, Gradle won't specify a target Java version so it will produce bytecode for whatever JDK runs the build, meaning if JDK 17 is used, Java classes for 17 will be produced. This output won't work with Fortify since it runs Java 8. Therefore, the target version must be set to 1.8 for the output to be usable.

See: https://docs.gradle.org/current/userguide/java_plugin.html

By default, Gradle won't specify a target Java version so it will produce bytecode for whatever JDK runs the build, meaning if JDK 17 is used, Java classes for 17 will be produced. This output won't work with Fortify since it runs Java 8. Therefore, the target version must be set to 1.8 for the output to be usable.

See: https://docs.gradle.org/current/userguide/java_plugin.html
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

Successfully merging this pull request may close these issues.

1 participant