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

Use testCompileClasspath instead of testCompileOnly #3219

Merged
merged 4 commits into from
Sep 12, 2020
Merged

Use testCompileClasspath instead of testCompileOnly #3219

merged 4 commits into from
Sep 12, 2020

Conversation

colltoaction
Copy link
Contributor

This will make the project future-proof for Gradle 7: Dependencies should no longer be declared using the compile and runtime configurations

Example build script:

plugins {
    id 'java-library'
}

repositories {
    jcenter()
}

dependencies {
    testImplementation "org.testcontainers:junit-jupiter:1.14.3"
}

Current output:

The testCompileOnly configuration has been deprecated for resolution. This will fail with an error in Gradle 7.0. Please resolve the testCompileClasspath configuration instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.6.1/userguide/upgrading_version_5.html#dependencies_should_no_longer_be_declared_using_the_compile_and_runtime_configurations

FAILURE: Build failed with an exception.

* What went wrong:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0

Copy link
Member

@rnorth rnorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @colltoaction - LGTM

@rnorth rnorth merged commit d796707 into testcontainers:master Sep 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants