-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
getting updates for sbt plugins #10
Comments
You can easily do it by adding plugin to the "meta"-project so to say. For example, to add it globally, put in addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.1.2") Now in any project you can do (in sbt): > reload plugins
> dependencyUpdates then use Moreover, you can make an alias for that. Add to your addCommandAlias("pluginUpdates", "; reload plugins; dependencyUpdates; reload return") |
Awesome! Works like a charm! In my opinion this hint deserves a place in the README.md of this project. |
Nice trick, @laughedelic, thanks. I'm reopening the issue because it was in my plans to add a native task for plugin updates. |
👍 |
2 similar comments
👍 |
+1 |
+1 for easier native method, e.g. |
+1 for |
👍 |
+1 for native |
+1 |
+1 for native |
👍 The above trick works so there is no hurry, but I think it would still be valuable addition |
@rtimush I tried the above trick, but can't get it to work:
|
Same:
But current |
I'm seeing the same issue as @lunaryorn and @alexeyr. |
The issue persists and @laughedelic's workaround doesn't work anymore, as people are saying. Is there another workaround that works? If not, is this feature scheduled for anytime soon? |
Nevermind what I said, I updated sbt-updates to version 0.3.0 and the workaround seems to have started working again :) |
workaround doesn't work for me:
Am I missing something in sbt-updates setup? |
@slothspot did you setup sbt-updates just for the project or in the global sbt configuration file? In order to get dependency updates for sbt plugins you need to have sbt-updates configured globally. |
Oh, thanks for explanation. I prefer per-project plugins setup. May be it would be reasonable to add note about this in README? |
Yes, it is worth mentioning in the README. Regarding a per-project setup — I suppose if you add sbt-updates as a plugin to your build project ( |
In case of putting |
This is why it's called a workaround, not a solution.
Again... Problem: include updates for plugins. Workaround: plugins are just
dependencies of the meta build, so use sbt-updates on the meta build.
Regardless, I would recommend setting it up globally. After all, you don't
want CI or other machines to have to download it, but you do want to use it
for any project on your machine (there's nothing about one project that
makes sbt-native-packager updates more useful than the next project). Hence
its usefulness is per machine (well, user...) not project.
…On Sat, Feb 18, 2017, 7:39 AM Dmitry Melnichenko ***@***.***> wrote:
In case of putting sbt-updates.sbt into project/project dependencyUpdates
is not available for project itself, and placing sbt-updates.sbt twice
inside of the project is not very convenient.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGAUFGxH1gC_LKzCBe5x4w9eXuujeL1ks5rduZlgaJpZM4BNUYg>
.
|
@nafg, idea is clear and understandable. But since I use custom tasks which depend on plugins, I prefer when projects don't depend on per-user defined plugins. |
@slothspot have you read this? Do you actually define any tasks depending on this plugin in the meta-project? I doubt it. So adding this plugin to your global scope meta-project is actually what you want:
|
@laughedelic I've got main point already, and don't have any tasks depend on this plugin. But in general I prefer per-project plugins configuration and it was not clear for me after reading sbt-updates documentation that I need to define this plugin globally to make plugins update check work. |
Anyone tried the workaround with sbt-updates 0.3.4 and sbt 1.1.1? I can't get it to work. It works for some plugins (e.g. lagom) but not others (e.g. dependency-check). |
Could probably look at https://github.com/scalacenter/load-plugin, which is able to load a plugin into the meta-build. |
Any idea if/when this would be implemented? :) |
#110 documents on how to use sbt-updates as a project plugin. Rest catch all issues reported here might be fixed in the latest version, probably better to close this one and raise specific issues as new ones |
This is not really an issue, but a feature request: it would be extremely awesome if one could check sbt plugin updates with this sbt plugin as well.
The text was updated successfully, but these errors were encountered: