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

plugin doesn't work with io.spring.dependency-management #114

Closed
eprst opened this issue Jun 21, 2016 · 4 comments
Closed

plugin doesn't work with io.spring.dependency-management #114

eprst opened this issue Jun 21, 2016 · 4 comments
Assignees
Milestone

Comments

@eprst
Copy link

eprst commented Jun 21, 2016

Hi. I'm not very sure if this is a bug in intellij or spring plugin.
I'm trying to use https://plugins.gradle.org/plugin/io.spring.dependency-management plugin and dependency resolution breaks for idea as soon as I add it.

I've got a small build.gradle which works fine:

gradle dependencies --configuration compile

:idea-plugin:dependencies

------------------------------------------------------------
Project :idea-plugin
------------------------------------------------------------

compile - Dependencies for source set 'main'.
\--- com.jetbrains:idea:2016.1.3

BUILD SUCCESSFUL

Now if I add just one line:

apply plugin: 'io.spring.dependency-management'

It fails with this:

:idea-plugin:dependencies FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':idea-plugin:dependencies'.
> Could not resolve all dependencies for configuration 'detachedConfiguration6'.
   > Module version xxx:idea-plugin:0.0.SNAPSHOT, configuration 'detachedConfiguration6' declares a dependency on configuration 'default' which is not declared in the module descriptor for com.jetbrains:idea:2016.1.3

Any ideas? Should I file it to Spring instead?
Thanks!

@zolotov
Copy link
Member

zolotov commented Jun 21, 2016

Any ideas?

Unfortunately no.

Should I file it to Spring instead?

Yes, please. Ping me if the problem on the intellij-plugin side.

@eprst
Copy link
Author

eprst commented Jun 22, 2016

See spring-gradle-plugins/dependency-management-plugin#93
Suggested workaround works. Not sure if you want to add default configuration to generated ivy.xml as probably a better workaround, otherwise feel free to close this issue. Thanks!

@zolotov
Copy link
Member

zolotov commented Jun 23, 2016

@eprst thank you, will try to do this

@zolotov zolotov self-assigned this Jun 23, 2016
@zolotov zolotov added this to the 0.1.9 milestone Jun 23, 2016
@zolotov
Copy link
Member

zolotov commented Jun 23, 2016

Fixed in 0.1.9 which will be available soon. To make it work you have to remove existing caches (~/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/)

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