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

Consider gradle configurations for testFixtures as test dependencies #919

Open
daniel-kr opened this issue Apr 28, 2022 · 3 comments
Open

Comments

@daniel-kr
Copy link

Hi,

by default, fossa excludes test dependencies which is great. For gradle builds, this is determined by a list of configurations that are considered as test dependencies. As far as I can see, this is specified in the https://github.com/fossas/fossa-cli/blob/master/src/Strategy/Gradle/Common.hs.

We are using the test fixture mechanism of Gradle in order to provide some API for test execution to other gradle modules.

Currently, fossa considers them as prod dependencies although they are test dependencies as well.

Would it be possible to add the gradle configurations testFixturesApi and testFixturesImplementation to the list of test configurations as well?

Kind Regards,
Daniel

@meghfossa
Copy link
Contributor

Can you try again with v3.2.14? https://github.com/fossas/fossa-cli/releases/tag/v3.2.14

@daniel-kr
Copy link
Author

Wow, that was quick. Thank you!
Unfortunately, it somehow does not work for me. 🤔
I have specified testFixturesApi 'com.tngtech.archunit:archunit-junit4:0.14.1' in my build.gradle but it is still reported as a dependency in FOSSA. When I change it to testImplementation, it is not reported as a dependency.
According to the output of the cli tool, I am using version 3.2.14

Scan Summary
[ INFO] ------------
[ INFO] fossa-cli version 3.2.14 (revision 693e703343c3 compiled with ghc-9.0)

@meghfossa
Copy link
Contributor

Interesting, can you provide an output of ./gradlew dependencies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants