diff --git a/scripted.sbt b/scripted.sbt index c765d85..80a8a5c 100644 --- a/scripted.sbt +++ b/scripted.sbt @@ -2,3 +2,5 @@ scriptedSettings scriptedLaunchOpts += "-Xmx1024m" + +scriptedLaunchOpts <+= version apply { v => "-Dproject.version="+v } diff --git a/src/sbt-test/sbt-osgi/test-00-defaults/project/plugins.sbt b/src/sbt-test/sbt-osgi/test-00-defaults/project/plugins.sbt index 984a1c1..a5d52b3 100644 --- a/src/sbt-test/sbt-osgi/test-00-defaults/project/plugins.sbt +++ b/src/sbt-test/sbt-osgi/test-00-defaults/project/plugins.sbt @@ -1,2 +1 @@ - -addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0-SNAPSHOT") +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % sys.props("project.version")) diff --git a/src/sbt-test/sbt-osgi/test-01-contents/project/plugins.sbt b/src/sbt-test/sbt-osgi/test-01-contents/project/plugins.sbt index 984a1c1..a5d52b3 100644 --- a/src/sbt-test/sbt-osgi/test-01-contents/project/plugins.sbt +++ b/src/sbt-test/sbt-osgi/test-01-contents/project/plugins.sbt @@ -1,2 +1 @@ - -addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0-SNAPSHOT") +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % sys.props("project.version")) diff --git a/src/sbt-test/sbt-osgi/test-02-includeresource/project/plugins.sbt b/src/sbt-test/sbt-osgi/test-02-includeresource/project/plugins.sbt index 984a1c1..a5d52b3 100644 --- a/src/sbt-test/sbt-osgi/test-02-includeresource/project/plugins.sbt +++ b/src/sbt-test/sbt-osgi/test-02-includeresource/project/plugins.sbt @@ -1,2 +1 @@ - -addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0-SNAPSHOT") +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % sys.props("project.version")) diff --git a/src/sbt-test/sbt-osgi/test-03-arbitraryHeaders/project/plugins.sbt b/src/sbt-test/sbt-osgi/test-03-arbitraryHeaders/project/plugins.sbt index 984a1c1..a5d52b3 100644 --- a/src/sbt-test/sbt-osgi/test-03-arbitraryHeaders/project/plugins.sbt +++ b/src/sbt-test/sbt-osgi/test-03-arbitraryHeaders/project/plugins.sbt @@ -1,2 +1 @@ - -addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0-SNAPSHOT") +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % sys.props("project.version")) diff --git a/src/sbt-test/sbt-osgi/test-04-embeddedJars/project/plugins.sbt b/src/sbt-test/sbt-osgi/test-04-embeddedJars/project/plugins.sbt index 984a1c1..a5d52b3 100644 --- a/src/sbt-test/sbt-osgi/test-04-embeddedJars/project/plugins.sbt +++ b/src/sbt-test/sbt-osgi/test-04-embeddedJars/project/plugins.sbt @@ -1,2 +1 @@ - -addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0-SNAPSHOT") +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % sys.props("project.version")) diff --git a/src/sbt-test/sbt-osgi/test-05-exportJars/project/plugins.sbt b/src/sbt-test/sbt-osgi/test-05-exportJars/project/plugins.sbt index 358167e..a5d52b3 100644 --- a/src/sbt-test/sbt-osgi/test-05-exportJars/project/plugins.sbt +++ b/src/sbt-test/sbt-osgi/test-05-exportJars/project/plugins.sbt @@ -1,2 +1 @@ -addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.7.0-SNAPSHOT") - +addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % sys.props("project.version"))