Skip to content

Conversation

@aaron-steinfeld
Copy link
Contributor

No description provided.

.create(EXTENSION_NAME, HypertraceDockerJavaApplication.class, project.getName());

extension.javaVersion.convention(
getJavaExtension(project).getToolchain().getLanguageVersion().map(JavaVersion::toVersion));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only functional change - adjusting the convention (the default) to use the language version of the toolchain.

java {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_11
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not strictly related but this plugin has some java 11 references in it so although generating jre8 classes it would have failed at runtime. We don't need the 8 support so fixed the compatibility rather than the code

@aaron-steinfeld aaron-steinfeld marked this pull request as ready for review January 31, 2025 19:06
@aaron-steinfeld aaron-steinfeld requested a review from a team as a code owner January 31, 2025 19:06
@aaron-steinfeld aaron-steinfeld merged commit c75c34e into main Feb 2, 2025
1 check passed
@aaron-steinfeld aaron-steinfeld deleted the improve-21-support branch February 2, 2025 21:28
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.

3 participants