sbt / sbt-onejar

Packages your project using One-JAR™
MIT License
268 stars 45 forks source link

sbt 0.10.x version #3

Closed teamon closed 13 years ago

teamon commented 13 years ago

Is it planned to support sbt 0.10.x ?

retronym commented 13 years ago

I'm not using the plugin myself at the moment, so it wasn't on the top of my list. But it there is a bit of interest I can make time.

teamon commented 13 years ago

I personally found this plugin the best fit for my needs (simple, ultra-fast, working!). Since I recently switched to sbt 0.10.1 there is a lot of interest :)

noelwelsh commented 13 years ago

I'd be a happy man if this plugin supported sbt 0.10

joestein commented 13 years ago

sbt 0.10 support would be awesome so I do not have to revert new projects I am working on back, +1

retronym commented 13 years ago

I've started work on this, see https://github.com/retronym/sbt-onejar

If you try it out, please provide some feedback here.

joestein commented 13 years ago

I followed the updated instructions for 0.10 on https://github.com/retronym/sbt-onejar

I added project/plugins/plugins.sbt and also the 3 lines.

reload, update, onejar

not working

onejar [error] Not a valid command: onejar [error] Not a valid project ID: onejar [error] Not a valid configuration: onejar [error] Not a valid key: onejar (similar: runner) [error] onejar

Include the settings from com.github.retronym.SbtOneJar.sbtOneJarSettings <= not sure what this is

retronym commented 13 years ago

Take a look at the test project:

https://github.com/retronym/sbt-onejar/blob/master/src/sbt-test/one-jar/basic

In particular:

https://github.com/retronym/sbt-onejar/blob/master/src/sbt-test/one-jar/basic/build.sbt

joestein commented 13 years ago

Just tried that. Same error.

I also just tried building the basic project (sbt-onejar/src/sbt-test/one-jar/basic). Got an unresolved error

[error] {file:/Users/joestein/sbt-onejar/src/sbt-test/one-jar/basic/project/plugins/}default-d86d15/*:update: sbt.ResolveException: unresolved dependency: com.github.retronym#sbt-onejar_2.8.1;0.3-SNAPSHOT: not found

so then I created project/plugins/plugins.sbt (was not in there) and put the 3 lines into it

reload, update, onejar

and the basic project same issue as in my project

onejar [error] Not a valid command: onejar [error] Not a valid project ID: onejar [error] Not a valid configuration: onejar [error] Not a valid key: onejar (similar: one-jar, one-jar-redist, runner) [error] onejar [error]

retronym commented 13 years ago

I've updated the documentation with the correct task name: one-jar.

joestein commented 13 years ago

good to go now! awesome! thanks!

retronym commented 13 years ago

I think this is done now.