which plugin is loaded

24 views
Skip to first unread message

Jeff Olson

unread,
Aug 24, 2013, 2:27:13 PM8/24/13
to simple-b...@googlegroups.com
Is there anyway to ask sbt (0.13) which version of a plugin is loaded? I sometimes have projects that add plugins explicitly in project/plugins.sbt for which I have a different version specified in ~/.sbt/0.13/plugins/global.sbt. Now I realize that one or the other probably always takes precedence, but rather than having to remember which way 'round it is, I would like to just ask sbt. But I can't find a way to do this.

It would be nice if the 'about' cmd would tell me.

-Jeff

Mark Harrah

unread,
Aug 24, 2013, 2:39:18 PM8/24/13
to simple-b...@googlegroups.com
On Sat, 24 Aug 2013 11:27:13 -0700 (PDT)
Jeff Olson <jeff.d...@gmail.com> wrote:

> Is there anyway to ask sbt (0.13) which version of a plugin is loaded? I
> sometimes have projects that add plugins explicitly in project/plugins.sbtfor which I have a different version specified in
> ~/.sbt/0.13/plugins/global.sbt. Now I realize that one or the other
> probably always takes precedence, but rather than having to remember which
> way 'round it is, I would like to just ask sbt. But I can't find a way to
> do this.

Global takes precedence. Also, you can change to the build definition project with `reload plugins` (and back with `reload return`). You can use the standard tools there. Without even doing a `reload`, you could look at project/target/resolution-cache/reports/ to see the usual Ivy resolution reports.

> It would be nice if the 'about' cmd would tell me.

Here is a proposal that I think is reasonable to implement:

1. `about` accepts an argument "plugins".
2. The current plugins line is modified to:
a. be the same but with "see `about plugins`" for details
b. say "N plugins available, see `about plugins`" for details
c. some other variation
3. `about plugins` lists the ModuleIDs for plugins and the Plugin subclasses for each one

-Mark

> -Jeff
>
> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to simple-build-t...@googlegroups.com.
> To post to this group, send email to simple-b...@googlegroups.com.
> Visit this group at http://groups.google.com/group/simple-build-tool.
> For more options, visit https://groups.google.com/groups/opt_out.

Jeff Olson

unread,
Aug 24, 2013, 3:03:58 PM8/24/13
to simple-b...@googlegroups.com
Thanks Mark,

Looking at libraryDependencies after 'reload plugins' shows me what I need to know for now. Your 'about plugins' proposal sounds great. That is exactly what I would like. I'm fine with any of the variants in point 2, although I think I like 2b best.

-Jeff

Mark Harrah

unread,
Aug 24, 2013, 4:13:20 PM8/24/13
to simple-b...@googlegroups.com
On Sat, 24 Aug 2013 12:03:58 -0700 (PDT)
Jeff Olson <jeff.d...@gmail.com> wrote:

> Thanks Mark,
>
> Looking at libraryDependencies after 'reload plugins' shows me what I need
> to know for now. Your 'about plugins' proposal sounds great. That is
> exactly what I would like. I'm fine with any of the variants in point 2,
> although I think I like 2b best.

Please open an enhancement. A pull request implementing it is also welcome.

-Mark
> > an email to simple-build-t...@googlegroups.com <javascript:>.
> > > To post to this group, send email to simple-b...@googlegroups.com<javascript:>.

Mark Harrah

unread,
Aug 26, 2013, 8:21:39 AM8/26/13
to simple-b...@googlegroups.com
On Sat, 24 Aug 2013 16:13:20 -0400
Mark Harrah <dmha...@gmail.com> wrote:

> On Sat, 24 Aug 2013 12:03:58 -0700 (PDT)
> Jeff Olson <jeff.d...@gmail.com> wrote:
>
> > Thanks Mark,
> >
> > Looking at libraryDependencies after 'reload plugins' shows me what I need
> > to know for now. Your 'about plugins' proposal sounds great. That is
> > exactly what I would like. I'm fine with any of the variants in point 2,
> > although I think I like 2b best.
>
> Please open an enhancement. A pull request implementing it is also welcome.

As it turns out, there's a nice plugin that implements pretty much exactly this:

https://github.com/sbt/sbt/pull/854

-Mark
Reply all
Reply to author
Forward
0 new messages