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

dependencyLock.configurationNames and custom configurations. #82

Closed
ftclausen opened this issue Dec 16, 2015 · 1 comment
Closed

dependencyLock.configurationNames and custom configurations. #82

ftclausen opened this issue Dec 16, 2015 · 1 comment

Comments

@ftclausen
Copy link
Contributor

Has anyone encountered an issue when using a custom dependency configuration in dependencyLock.configurationNames? This causes (for us) an issue with Ivy metadata in Gradle. For example projectA depends on projectB and projectB is in the "myConfiguration" configuration container. This results in the following :

Caused by: java.lang.RuntimeException: Module version com.example:projectA:1.0.0, configuration 
'detachedConfiguration1' declares a dependency on configuration 'myConfiguration' which is not 
declared in the module descriptor for com.example:projectB:2.0.0

where the detachedConfiguration1 is created by gradle-dependency-lock-plugin as part of GenerateLockTask.groovy; specifically when resolution is triggered over here. I'm not sure why it is a detached configuration since we are iterating over attached (and named) configurations. Look at the cached ivy.xml for projectB there is indeed no myConfiguration listed.

@ftclausen
Copy link
Contributor Author

I found a solution to this in the way we declare our dependencies in our build; I'll close this issue.

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

1 participant