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

org.gradle.util.VersionNumber is being deprecated #34

Closed
enaess opened this issue May 7, 2024 · 3 comments
Closed

org.gradle.util.VersionNumber is being deprecated #34

enaess opened this issue May 7, 2024 · 3 comments

Comments

@enaess
Copy link

enaess commented May 7, 2024

I am getting deprecated warnings for classes scheduled to be removed in Gradle 9.0

The org.gradle.util.VersionNumber type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/8.5/userguide/upgrading_version_8.html#org_gradle_util_reports_deprecations
	at org.gradle.util.VersionNumber.logDeprecation(VersionNumber.java:37)
	at org.gradle.util.VersionNumber.compareTo(VersionNumber.java:112)
	at com.google.gradle.osdetector.OsDetector.compareGradleVersion(OsDetector.java:96)
	at com.google.gradle.osdetector.OsDetector.getImpl(OsDetector.java:85)
	at com.google.gradle.osdetector.OsDetector.getClassifier(OsDetector.java:63)
	at com.google.gradle.osdetector.OsDetector_Decorated.getClassifier(Unknown Source)

Also, there doesn't seem to be a recommended replacement for this API, maybe find a semver package or write one yourselves?

See
https://stackoverflow.com/questions/69967885/whats-the-successor-of-org-gradle-util-versionnumber

@ejona86
Copy link
Collaborator

ejona86 commented May 7, 2024

Did you try upgrading? VersionNumber was removed from the plugin in 1.7.1.

@enaess
Copy link
Author

enaess commented May 7, 2024

I'll have another look with the latest version. And I am probably wrong here as I must have eye-balled the wrong import mistaking it for VersionNumber:

@enaess enaess closed this as completed May 8, 2024
@enaess
Copy link
Author

enaess commented May 8, 2024

Did the upgrade and the warning went away, closing the issue.

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

No branches or pull requests

2 participants