tkawachi / sbt-lock

Gemfile.lock for sbt
75 stars 12 forks source link

Using compile scope makes dependencyOverrides have no effect #34

Open dmitchellmim opened 3 years ago

dmitchellmim commented 3 years ago

Starting in 0.6.2 (#30), this plugin's lock file scopes the dependencyOverrides under Compile. However, sbt seems to ignore these scoped overrides, even under the Compile scope. Here is a sample Play project where I reproduced the issue. Using show update according to sbt documentation, I can verify that sbt does not choose the overridden version. As a result, the lock file doesn't actually lock the version—the application uses the wrong version when running. Downgrading to 0.6.1 fixes the problem. Is it possible to set the overrides properly while still supporting the use case in #30?

jtjeferreira commented 3 years ago

I think the best solution is to revert #30