Slackbot
10/18/2023, 1:10 AMRyan Schmitt
10/18/2023, 1:11 AMVampire
10/18/2023, 1:25 AMIsn't this a little hastyWell, the backward compatibility policy is:
Once deprecated, it may be removed in the next major release. Deprecated features may be supported across major releases, but this is not guaranteed.So even if something is deprecated in the last hotfix of a major version, it can be removed right in the next release. If you have concerns that it is too hasty for this case, you should probably open an issue on GitHub with them. Wouldn't be the first deprecation for which the removal gets shifted to a later major release. 🙂
was still in the Gradle documentation as recently as 8.1? The documentation has only been correct since 8.2,I don't really get what you mean. The link you posted first follows to the upgrade guide section "upgrading from 8.1", so this change was indeed made in 8.2. So if 8.2 documentation also had those idioms removed, there was nothing to "correct", because in 8.1 it was not yet deprecated.
ephemient
10/18/2023, 1:27 AMVampire
10/18/2023, 1:28 AMephemient
10/18/2023, 1:30 AMephemient
10/18/2023, 1:31 AMVampire
10/18/2023, 1:31 AMVampire
10/18/2023, 1:34 AM$ git d b80d1d2d723^! -- subprojects/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java
diff --git a/subprojects/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java b/subprojects/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java
index ead5ae4b0b8..bdd71841317 100644
--- a/subprojects/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java
+++ b/subprojects/testing-jvm/src/main/java/org/gradle/api/internal/tasks/testing/detection/ForkedTestClasspathFactory.java
@@ -30,6 +30,7 @@
import org.gradle.internal.UncheckedException;
import org.gradle.internal.classpath.ClassPath;
import org.gradle.internal.classpath.DefaultClassPath;
+import org.gradle.internal.deprecation.DeprecationLogger;
import org.gradle.util.internal.CollectionUtils;
import java.io.Closeable;
@@ -122,13 +123,11 @@ private ForkedTestClasspath getClasspathWithAdditionalModules(
AdditionalClasspath additional,
boolean isModule
) {
- // TODO #13955: Enable this deprecation in 8.2
- // We don't have enough time in 8.1 to write the documentation and update our own tests.
-// DeprecationLogger.deprecateIndirectUsage("The automatic loading of test framework implementation dependencies")
-// .withAdvice("Declare the desired test framework directly on the test suite or explicitly declare the test framework implementation dependencies on the test's runtime classpath.")
-// .willBeRemovedInGradle9()
-// .withUpgradeGuideSection(8, "test_framework_implementation_dependencies")
-// .nagUser();
+ DeprecationLogger.deprecateIndirectUsage("The automatic loading of test framework implementation dependencies")
+ .withAdvice("Declare the desired test framework directly on the test suite or explicitly declare the test framework implementation dependencies on the test's runtime classpath.")
+ .willBeRemovedInGradle9()
+ .withUpgradeGuideSection(8, "test_framework_implementation_dependencies")
+ .nagUser();
if (isModule) {
return new ForkedTestClasspath(
$ git tag --contains b80d1d2d723
v8.2.0
v8.2.0-M1
v8.2.0-RC1
v8.2.0-RC2
v8.2.0-RC3
v8.2.1
v8.3.0
v8.3.0-RC1
v8.3.0-RC2
v8.3.0-RC3
v8.3.0-RC4
v8.4.0
v8.4.0-RC1
v8.4.0-RC2
v8.4.0-RC3
$ephemient
10/18/2023, 1:41 AM/**
* Whether the legacy behavior of loading test framework dependencies from the Gradle distribution
* is enabled. If true, jars and modules as specified by {@link #getTestWorkerImplementationClasses()}
* and {@link #getTestWorkerImplementationModules()} respectively are loaded from the Gradle distribution
* and placed on the test worker classpath and/or modulepath.
* <p>
* This functionality is legacy and will eventually be deprecated and removed. Test framework dependencies
* should be managed externally from the Gradle distribution, as is done by test suites.
*
* @return Whether test framework implementation dependencies should be loaded from the Gradle distribution.
*/
@Internal
boolean getUseImplementationDependencies();
but yeah, that doesn't actually log a warningephemient
10/18/2023, 1:42 AM