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

sbt plug-in updates does not work #98

Closed
zafarella opened this issue Nov 19, 2018 · 4 comments
Closed

sbt plug-in updates does not work #98

zafarella opened this issue Nov 19, 2018 · 4 comments

Comments

@zafarella
Copy link

zafarella commented Nov 19, 2018

The plug-in is really handy, however, for some reason it does not provide me the plug-in updates. Did you guys ever encountered any similar issue?

➜ sbt ";dependencyUpdates; reload plugins; dependencyUpdates"
[info] Loading project definition from /Users/user1/git/api/project/project
[info] Updating {file:/Users/user1/git/api/project/project/}api-build-build...
[info] Done updating.
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/user1/git/api/project
[info] Loading settings from build.sbt ...
[info] Set current project to api (in build file:/Users/user1/git/api/)
[info] Found 9 dependency updates for api
[info]   com.sksamuel.elastic4s:elastic4s-aws           : 6.2.10          -> 6.4.0
[info]   com.sksamuel.elastic4s:elastic4s-core          : 6.2.10          -> 6.4.0
[info]   com.sksamuel.elastic4s:elastic4s-embedded:test : 6.2.10          -> 6.4.0
[info]   com.sksamuel.elastic4s:elastic4s-http          : 6.2.10          -> 6.4.0
[info]   com.sksamuel.elastic4s:elastic4s-testkit:test  : 6.2.10          -> 6.4.0
[info]   org.elasticsearch.client:rest                  : 5.4.3           -> 5.5.3
[info]   org.elasticsearch:elasticsearch                : 6.2.4           -> 6.5.0
[info]   org.postgresql:postgresql                      : 42.1.4          -> 42.2.5
[success] Total time: 4 s, completed Nov 19, 2018 11:23:35 AM

sbt plug-ins:

[info] Loading project definition from /Users/user1/git/api/project/project
[info] Updating {file:/Users/user1/git/api/project/project/}project-build...
[info] Done updating.
[info] Loading settings from plugins.sbt ...
[info] Loading project definition from /Users/user1/git/api/project
[error] Not a valid command: dependencyUpdates
[error] Not a valid project ID: dependencyUpdates
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: dependencyUpdates (similar: dependencyClasspath, dependencyOverrides, dependencyPositions)
[error] dependencyUpdates
[error]
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4")

sbt.version=1.0.4

scalaVersion := "2.12.7",

@rtimush
Copy link
Owner

rtimush commented Nov 19, 2018

Unfortunately, dependencyUpdates for plugins works only if you have sbt-updates configured globally in ~/.sbt/1.0/plugins/sbt-updates.sbt, is it the case? You can also check discussions in #10.

@zafarella
Copy link
Author

I just need add ~/.sbt/1.0/plugins/sbt-updates.sbt with

addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.3.4")

?

@rtimush
Copy link
Owner

rtimush commented Nov 20, 2018

@zafarella Yes, this should solve the issue.

@rtimush
Copy link
Owner

rtimush commented Nov 29, 2018

Closing for now, please re-open if you still see some issues

@rtimush rtimush closed this as completed Nov 29, 2018
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