Skip to content

Fix deprecated automatic test framework dependency loading in example-client (removed in Gradle 9.0) #25

Description

@Besi97

Deprecation Warning

The automatic loading of test framework implementation dependencies has been deprecated. The desired test framework must be declared directly on the test suite or its implementation dependencies must be explicitly declared on the test runtime classpath.

Where

plugins/gradle/example-client/build.gradle

The project uses JUnit Jupiter but does not call test.useJUnitPlatform().

Fix

Add useJUnitPlatform() to the test task configuration:

test {
    useJUnitPlatform()
}

Removed in

Gradle 9.0

Resource

https://docs.gradle.org/8.14.3/userguide/upgrading_version_8.html#test_framework_implementation_dependencies

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