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

Capture target Java release version in build time analytics #36120

Open
rsvoboda opened this issue Sep 25, 2023 · 2 comments
Open

Capture target Java release version in build time analytics #36120

rsvoboda opened this issue Sep 25, 2023 · 2 comments
Assignees
Labels
kind/enhancement New feature or request

Comments

@rsvoboda
Copy link
Member

Description

At this moment build time analytics capture version and vendor of java used for the build.

This can give slightly misleading data because people can be using Java 21 locally but the project can be still based on Java 11.

Build time analytics should be enhanced to capture and report target Java release version of the project.

CC @brunobat

Implementation ideas

Check value of maven.compiler.release for Maven projects, alternatively check source and target properties too, some people may be used to the old ones.
Check targetCompatibility in build.gradle file

Maybe there is a programmatic way to capture info on the target version, but I'm not aware of that.

@rsvoboda rsvoboda added the kind/enhancement New feature or request label Sep 25, 2023
@brunobat
Copy link
Contributor

That's a good point.
Will add this to the pipeline.

@brunobat
Copy link
Contributor

@geoand we should probably have a label for analytics subjects

@brunobat brunobat self-assigned this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants