Skip to content

Fix deprecation: Test framework implementation dependencies (Gradle 9.0) #36

Description

@Besi97

Issue

The automatic loading of test framework implementation dependencies has been deprecated and will be removed in Gradle 9.0.

Warning Message

The automatic loading of test framework implementation dependencies has been deprecated. 
This is scheduled to be removed in Gradle 9.0. Declare the desired test framework directly 
on the test suite or explicitly declare the test framework implementation dependencies on 
the test's runtime classpath.

Affected Project

Root library (graphql-java-codegen)

Fix Required

Explicitly declare the test framework implementation dependencies in build.gradle:

dependencies {
    testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.2"
    testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.2"
}

Or migrate to the JVM Test Suite Plugin for better test framework configuration.

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions