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

Project's dependencies cannot be used inside custom JvmTestSuite #24050

Closed
jzrebiec opened this issue Feb 27, 2023 · 1 comment
Closed

Project's dependencies cannot be used inside custom JvmTestSuite #24050

jzrebiec opened this issue Feb 27, 2023 · 1 comment
Labels
closed:duplicate Duplicated or superseeded by another issue

Comments

@jzrebiec
Copy link

Expected Behavior

Project's dependencies can be used inside custom JvmTestSuites like in standard test task

Current Behavior

Compilation error with unresolved reference

Context

I want to separate my tests into different categories.

Steps to Reproduce

Code: jzrebiec/jvm-test-suite-issue@1ba571a
Result: https://github.com/jzrebiec/jvm-test-suite-issue/actions/runs/4281493392/jobs/7454618649

Your Environment

Build scan URL:

@jzrebiec jzrebiec changed the title Project's dependencies cannot be used inside JvmTestSuite Project's dependencies cannot be used inside custom JvmTestSuite Feb 27, 2023
@eskatos eskatos added closed:question usage question or request for help closed:duplicate Duplicated or superseeded by another issue and removed a:bug to-triage closed:question usage question or request for help labels Mar 3, 2023
@eskatos
Copy link
Member

eskatos commented Mar 3, 2023

Thank you for your interest in Gradle!

This issue will be closed as a duplicate of

Which is currently planned for Gradle 8.2.

Please add your use case and 👍 to that issue.


In the meantime your best bet is the following:

archTestImplementation.extendsFrom(configurations.implementation)
archTestCompileOnly.extendsFrom(configurations.compileOnly)

@eskatos eskatos closed this as not planned Won't fix, can't repro, duplicate, stale Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:duplicate Duplicated or superseeded by another issue
Projects
None yet
Development

No branches or pull requests

2 participants