-
Notifications
You must be signed in to change notification settings - Fork 274
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
Shadowing dependencies // Problem with scope 'implementation' vs. 'compile' #656
Comments
I too faced this same issue. adding the below code fixed it for me. configurations {
all {
// Allows using project dependencies instead of IDE dependencies during compilation and test running
resolutionStrategy.sortArtifacts(ResolutionStrategy.SortOrder.DEPENDENCY_FIRST)
}
} this code is from the Rust plugin. |
I also ran into this issue in an IntelliJ Platform Plugin project when I tried to use the Despite explicitly adding a dependency of
I was able to get this working by using the workaround @Pushpavel provided, though I'm not sure if this is a good long-term solution. |
…path` and `testCompileClasspath` configurations #656
…path` and `testCompileClasspath` configurations #656
With the next release, the It'll be possible to disable it, in terms of any potential troubles, with the build feature flag: org.jetbrains.intellij.buildFeature.useDependencyFirstResolutionStrategy = false |
…path` and `testCompileClasspath` configurations #656
Fix delivered with 1.7.0 isn't correct. Another one applied with #1060 – see comments for more details. |
I'm still getting this issue with plugin version v1.10.0. The above |
With gradle 7,
compile
dependency scope was deprecated/removed. Proper replacement should beimplementation
scope.However dependencies added with
implementation
scope are added "after"ideaIC
, which means all "shadowed" dependencies like apache velocity will not work correctly.Sample repository: example
Dependency lists are in scope*.txt files
Changing scope
implementation
tocompile
will fix dependency issues and build ends with success.The text was updated successfully, but these errors were encountered: