-
Couldn't load subscription status.
- Fork 601
Description
Version
- Ice version: 3.7.10
- OS: Debian 13 Trixie, gradle 4.4.1 from Debian packages
Describe the bug
When building Ice 3.7.10 on Debian 13 Trixie, the Java and Java-compat parts of the build show warnings like this:
Compiling script '/build/zeroc-ice/ice/java/gradle/ice.gradle' using BuildScriptTransformer.
Script '/build/zeroc-ice/ice/java/gradle/ice.gradle' is using GradleVersion from the private org.gradle.util package without an explicit import. Please either stop using these internal classes (recommended) or import them explicitly at the top of your build file. The implicit import is deprecated and will be removed in Gradle 5.0
Full build log: ice_build_log.txt
Basically, this warning is shown for every gradle file that mentions GradleVersion.
I'm not sure what would be the correct fix for this, since, as the warning says, GradleVersion is an internal implementation detail and users are not supposed to use it. Importing org.gradle.util might silence the warnings but would leave the build scripts open for breakage in the future, if gradle removes or changes the meaning of GradleVersion.
Expected behavior
There should be no warnings.
Additional context
This issue was mentioned previously here, but I don't think it was fixed.