Skip to content

Commit

Permalink
sbt-cross-building was not published for 0.13, but can publish for 0.13
Browse files Browse the repository at this point in the history
(this reverting to 0.12.4 SBT + cross publishing plugin)
  • Loading branch information
melezov committed Aug 28, 2013
1 parent 7bac2b3 commit ed2509e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 28 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Published against SBT 0.11.3, 0.12.x & 0.13.x

resolvers += "Element Releases" at "http://repo.element.hr/nexus/content/repositories/releases/"

addSbtPlugin("hr.element.xsbt" % "xsbt-sh" % "0.0.1")
addSbtPlugin("hr.element.xsbt" % "xsbt-sh" % "0.0.2")

This is a command plugin, so there is no need to add it to your settings,
you only need to add it to the project/plugin.sbt file.
Expand All @@ -22,4 +22,10 @@ Usage:
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
>
> sh dir "c:\\Program Files (x86)"
Volume in drive C is System
Volume Serial Number is 1234-1234

Directory of c:\Program Files (x86)
...
12 changes: 5 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@ name := "xsbt-sh"

version := "0.0.2"

publishTo := Some(
if (version.value endsWith "SNAPSHOT")
publishTo <<= version { version => Some(
if (version endsWith "SNAPSHOT")
"Element Snapshots" at "http://repo.element.hr/nexus/content/repositories/snapshots/"
else
"Element Releases" at "http://repo.element.hr/nexus/content/repositories/releases/"
)
)}

credentials += Credentials(Path.userHome / ".config" / "xsbt-sh" / "nexus.config")

scalaVersion := "2.10.2"
crossBuildingSettings

// crossBuildingSettings

// CrossBuilding.crossSbtVersions := Seq("0.11.3", "0.12", "0.13")
CrossBuilding.crossSbtVersions := Seq("0.11.3", "0.12", "0.13")
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.13.0
sbt.version=0.12.4
18 changes: 2 additions & 16 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
resolvers ++= Seq(
"Element Nexus" at "http://repo.element.hr/nexus/content/groups/public/"
, Resolver.url("Element Nexus (Ivy)",
url("http://repo.element.hr/nexus/content/groups/public/"))(Resolver.ivyStylePatterns)
)

// =======================================================================================

// +-------------------------------------------------------------------------------------+
// | SBT Eclipse (https://github.com/typesafehub/sbteclipse) |
// | Creates .project and .classpath files for easy Eclipse project imports |
Expand All @@ -14,17 +6,11 @@ resolvers ++= Seq(
// | See also: Scala IDE downloads (http://download.scala-ide.org/) |
// +-------------------------------------------------------------------------------------+

addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.3.0")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.2.0")

// +-------------------------------------------------------------------------------------+
// | Sbt Cross Building Plugin (https://github.com/jrudolph/sbt-cross-building) |
// | Enables building of plugins targeting older versions of SBT |
// +-------------------------------------------------------------------------------------+

// addSbtPlugin("net.virtual-void" % "sbt-cross-building" % "0.8.0")

// +-------------------------------------------------------------------------------------+
// | Tiny XSBT shell plugin (https://github.com/melezov/xsbt-sh) |
// +-------------------------------------------------------------------------------------+

addSbtPlugin("hr.element.xsbt" % "xsbt-sh" % "0.0.1")
addSbtPlugin("net.virtual-void" % "sbt-cross-building" % "0.8.0")
Binary file not shown.
2 changes: 1 addition & 1 deletion sbt.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@echo off
java -jar project\strap\gruj_vs_sbt-launch-0.13.0.jar %*
java -jar project\strap\gruj_vs_sbt-launch-0.12.4.jar %*
2 changes: 1 addition & 1 deletion sbt.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
java -jar project/strap/gruj_vs_sbt-launch-0.13.0.jar "$*"
java -jar project/strap/gruj_vs_sbt-launch-0.12.4.jar "$*"

0 comments on commit ed2509e

Please sign in to comment.