-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sbt-updates 0.2.0 has been released: | ||
|
||
* If your project uses `crossScalaVersions` you will be presented only with updates available for all scala versions. | ||
* Unsupported protocols such as `ftp://` or `s3://` do not cause errors anymore. | ||
|
||
Updates report example: | ||
|
||
> dependencyUpdates | ||
[info] Found 3 dependency updates for test-project | ||
[info] ch.qos.logback:logback-classic : 0.8 -> 0.8.1 -> 0.9.30 -> 1.0.13 | ||
[info] org.slf4j:slf4j-api : 1.6.4 -> 1.6.6 -> 1.7.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/scala/com/timushev/sbt/updates/UpdatesPluginTasks.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import com.timushev.sbt.updates.versions.Version | ||
|
||
scalaVersion := "2.10.4" | ||
crossScalaVersions := Seq("2.10.4", "2.11.5") | ||
|
||
libraryDependencies += "org.specs2" %% "specs2" % "3.1" | ||
|
||
TaskKey[Unit]("check") := { | ||
val updates = dependencyUpdatesData.value | ||
val found = updates.keys exists { | ||
case m if m.organization == "org.scala-lang" => false | ||
case m if m.organization == "org.specs2" => | ||
val versions = updates(m) | ||
if (versions.contains(Version("3.7"))) | ||
sys.error(s"Wrong update versions: $versions") | ||
true | ||
case other => | ||
sys.error(s"Wrong update key: $other") | ||
false | ||
} | ||
if (!found) | ||
sys.error("No updates for specs2 found") | ||
() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "latest.integration") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
> check |