sbt / sbt-osgi

sbt plugin for creating OSGi bundles
Apache License 2.0
47 stars 43 forks source link

Instructions for snapshot are not valid #21

Closed PhilAndrew closed 9 years ago

PhilAndrew commented 10 years ago

For the snapshot version, this import does not work. Following the instructions for the snapshot version does not work.

import com.typesafe.sbt.SbtOsgi.autoImport._

arashi01 commented 10 years ago

@PhilAndrew sorry, only just seen this issue. It seems that the snapshot binary in the snapshot repository is not up to date (ivy.xml says build date was 05 Jan 14).

Perhaps @reggert may be able to publish a current snapshot at some point when possible; for now though you may use it by depending on the source rather than the binary. E.g in your plugin definition file replace:

resolvers += Classpaths.sbtPluginSnapshots

addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.8.0-SNAPSHOT")

with

lazy val plugins = (project in file("."))
  .dependsOn(sbtOsgi)

lazy val sbtOsgi = uri("git://github.com/sbt/sbt-osgi.git")
hsyed commented 9 years ago

can we get an updated artefact please ?

PhilAndrew commented 9 years ago

Hi hsyed, I don't think this project is being maintained anymore, so I made a Sbt OSGi from which you can build upon. https://github.com/PhilAndrew/ScalaOsgiWithSbt

Just clone that, should solve your main problem if you want to be able to use Scala and output a OSGi jar.

reggert commented 9 years ago

I'll see if I can publish a new snapshot some time this week if I have time.

reggert commented 9 years ago

Version 0.8.0 has been released, pending approval for inclusion in the sbt-plugin-releases repository.