|Please review: Allow cross-building of plugins||Johannes Rudolph||2/22/12 4:15 AM|
I've created a plugin which allows cross-building of sbt plugins (I've got a strong feeling of some recursive irony here) . You specify the sbt version to build against with "sbtVersion in sbtPlugin" and then go on as usual. This of course works only for plugins which are basically compatible with the corr. sbt version.
I think it is highly necessary to decouple the plugin sbt version from the plugin _build_ sbt version so that you can easily release versions of your sbt plugin without having to move the complete plugin _build_ to an older version. Part of this may or may not become less necessary when we have binary compatible versions but we are not there yet. Even then it would be nice if we could build 0.12 plugins with a 0.11 plugin build so that you are not completely dependent on all the plugins you use in the plugin build itself to upgrade to 0.12.
Basically, the idea is to introduce a "sbtVersion in sbtPlugin" setting which specifies which sbt version you want to build against. I've done the change against sbt 0.11.2 itself here  and then extracted the same changes into a plugin.
What do you think?
|Re: Please review: Allow cross-building of plugins||Jason Zaugg||2/22/12 6:52 AM|
How does it interact with the scripted SBT test plugin?
|Re: [sbt] Re: Please review: Allow cross-building of plugins||Johannes Rudolph||2/22/12 7:12 AM|
On Wed, Feb 22, 2012 at 3:52 PM, Jason Zaugg <jza...@gmail.com> wrote:
Honestly, I have no clue. Despite producing sbt plugins now in a
|Re: [sbt] Re: Please review: Allow cross-building of plugins||Johannes Rudolph||2/22/12 7:16 AM|
On Wed, Feb 22, 2012 at 4:12 PM, Johannes Rudolph
> I heard
Ha, found it, had just to look into my sbt sources. Having no
|Re: [sbt] Re: Please review: Allow cross-building of plugins||Jason Zaugg||2/22/12 7:23 AM|
On Wednesday, February 22, 2012 4:12:02 PM UTC+1, Johannes Rudolph wrote:On Wed, Feb 22, 2012 at 3:52 PM, Jason Zaugg <jza...@gmail.com> wrote:
It's pretty straight forward to use. Take a look at xsbt-web-plugin from a real-world example.
|Re: [sbt] Re: Please review: Allow cross-building of plugins||Johannes Rudolph||2/22/12 7:48 AM|
It seems the scripted plugin didn't work before 0.11.2 at all . And
So one would have to fix that first.
> --> https://groups.google.com/d/msg/simple-build-tool/-/cTKAzHAaEvwJ.
|Re: [sbt] Re: Please review: Allow cross-building of plugins||Mark Harrah||2/22/12 3:56 PM|
On Wed, 22 Feb 2012 16:48:14 +0100
> Thanks Jason.
That should be possible at least in theory. The problem is not using the same launcher, but that build.properties is ignored. It is probably best not to work with a build.properties, but to pass the version directly to the launcher.
|Re: Please review: Allow cross-building of plugins||Johannes Rudolph||5/8/12 5:11 AM|
I published version 0.5.1 of the cross-building plugin for all 0.11.x sbt versions. It now supports cross-building for sbt 0.11.3 as well. With the sbt-cross-building plugin you don't have to update your plugin *build* to another sbt version just to build against a new sbt version. This, of course, works only if you plugin *code* is actually compatible with the sbt versions you are building against.