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

The AbstractCompile.destinationDir property has been deprecated #1646

Open
surecloud-jleite opened this issue Nov 18, 2024 · 2 comments · May be fixed by #1658
Open

The AbstractCompile.destinationDir property has been deprecated #1646

surecloud-jleite opened this issue Nov 18, 2024 · 2 comments · May be fixed by #1658

Comments

@surecloud-jleite
Copy link

I've got this warning when using Gradle 8.11

The AbstractCompile.destinationDir property has been deprecated.org.jsonschema2pojo

This is scheduled to be removed in Gradle 9.0.
The AbstractCompile.destinationDir property has been deprecated.

@unkish
Copy link
Collaborator

unkish commented Dec 10, 2024

Hi

Since jsonschema2pojo-gradle-plugin does not explicitly reference AbstractCompile#destinationDir then theoretically given warning should not pose a problem.

I've managed to trace down the source/location of given warning to

configuration.targetVersion = compileJavaTask.getProperties().get("sourceCompatibility")

It looks like that warning is emited due usage of meta properties field (.properties()).
Replacing it with

configuration.targetVersion = compileJavaTask.sourceCompatibility

would make warning go away.

@joelittlejohn what would be your opinion here - should the change be applied or it's not worth it ?

@joelittlejohn
Copy link
Owner

Thanks for digging into this @unkish. Yes, this looks like a good change to me.

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