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

Kotlin 2.0 and test groups problem #394

Open
BrunoJAzevedo opened this issue Jun 4, 2024 · 3 comments
Open

Kotlin 2.0 and test groups problem #394

BrunoJAzevedo opened this issue Jun 4, 2024 · 3 comments

Comments

@BrunoJAzevedo
Copy link

Hello,

I'm using this plugin for the first time on an Android App and I noticed something

When using Kotlin version 2.0 and skipTestGroups=false I have the following error:

Cannot change dependencies of dependency configuration ':debugAndroidTestCompileClasspath' after it has been included in dependency resolution. Use 'defaultDependencies' instead of 'beforeResolve' to specify default dependencies for a configuration.

I've been able to "fix" this either changing Kotlin version to 1.9.24 or still use Kotlin 2.0 but skipping the test groups skipTestGroups=true

Currently I'm using version 9.2.0 of the dependency check.

Is there something that I should be doing different on how to use Kotlin 2.0 and not skipping the tests groups?

Thank you in advance!

@ccudennec-otto
Copy link

Hi @jeremylong !

We also face issues with Gradle 8.5 / Kotlin 2.0.0 that can be "fixed" by downgrading to 1.9.24.

In our case we get false positives for quite old CVEs or CVEs that don't affect us.
Are there any known limitations / bugs using dependency-check with Kotlin 2.0.0?

Thanks!

@jeremylong
Copy link
Collaborator

report FP here.

Regarding the test groups - I have not had time to look into this. Do you have a sample project that causes the issue?

@ccudennec-otto
Copy link

We also face issues with Gradle 8.5 / Kotlin 2.0.0 that can be "fixed" by downgrading to 1.9.24.

For me it looks like Kotlin 2.0.21 and Dependency Check 11.1.0 works together.
Thanks! 👍

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

3 participants