Skip to content

Commit 8591a5a

Browse files
Bump to sbt 0.13.16, drop support for sbt 0.12.x
1 parent 7a92c22 commit 8591a5a

File tree

14 files changed

+263
-233
lines changed

14 files changed

+263
-233
lines changed

README.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
Visualize your project's dependencies.
66

7-
## Preliminaries
8-
9-
The plugin works best with sbt >= 0.13.6. See the [compatibility notes](#compatibility-notes) to use this plugin with an older version of sbt.
10-
117
## Usage Instructions
128

139
Since sbt-dependency-graph is an informational tool rather than one that changes your build, you will more than likely wish to
@@ -20,8 +16,6 @@ addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.8.2")
2016

2117
To add the plugin only to a single project, put this line into `project/plugins.sbt` of your project, instead.
2218

23-
This plugin is an auto-plugin which will be automatically enabled starting from sbt 0.13.5.
24-
2519
## Main Tasks
2620

2721
* `dependencyTree`: Shows an ASCII tree representation of the project's dependencies
@@ -66,26 +60,11 @@ dependencyDotFile := file("dependencies.dot") //render dot file to `./dependenci
6660

6761
* [#19]: There's an unfixed bug with graph generation for particular layouts. Workaround:
6862
Use `dependency-tree` instead of `dependency-graph`.
69-
* [#39]: When using sbt-dependency-graph with sbt < 0.13.6.
70-
71-
## Compatibility notes
72-
73-
* sbt < 0.13.6: The plugin will fall back on the old ivy report XML backend which suffers from [#39].
74-
* sbt < 0.13.5: Old versions of sbt have no `AutoPlugin` support, you need to add
75-
76-
```scala
77-
net.virtualvoid.sbt.graph.DependencyGraphSettings.graphSettings
78-
```
79-
80-
to your `build.sbt` or (`~/.sbt/0.13/user.sbt` for global configuration) to enable the plugin.
81-
* sbt <= 0.12.x: Old versions of sbt are not actively supported any more. Please use the old version from the [0.7 branch](https://github.com/jrudolph/sbt-dependency-graph/tree/0.7).
82-
8363

8464
## License
8565

8666
Published under the [Apache License 2.0](http://en.wikipedia.org/wiki/Apache_license).
8767

8868
[global plugin]: http://www.scala-sbt.org/0.13/tutorial/Using-Plugins.html#Global+plugins
8969
[global build configuration]: http://www.scala-sbt.org/0.13/docs/Global-Settings.html
90-
[#19]: https://github.com/jrudolph/sbt-dependency-graph/issues/19
91-
[#39]: https://github.com/jrudolph/sbt-dependency-graph/issues/39
70+
[#19]: https://github.com/jrudolph/sbt-dependency-graph/issues/19

build.sbt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
ScriptedPlugin.scriptedSettings
22

3-
libraryDependencies += "com.github.mdr" %% "ascii-graphs" % "0.0.3"
3+
libraryDependencies ++= Seq(
4+
"com.github.mdr" %% "ascii-graphs" % "0.0.3",
5+
"org.specs2" %% "specs2" % "2.3.11" % Test
6+
)
47

5-
libraryDependencies += "org.specs2" %% "specs2" % "2.3.11" % "test"
6-
7-
scalacOptions ++= Seq("-deprecation", "-unchecked")
8+
scalacOptions ++= Seq(
9+
"-deprecation",
10+
"-encoding",
11+
"UTF-8",
12+
"-feature",
13+
"-unchecked"
14+
)
815

916
ScalariformSupport.formatSettings

project/Helpers.scala

Lines changed: 0 additions & 16 deletions
This file was deleted.

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=0.13.8
1+
sbt.version=0.13.16

project/pgp.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0")
1+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.1.0")

publish.sbt

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
publishTo <<= version { v: String =>
1+
publishTo := {
22
val nexus = "https://oss.sonatype.org/"
3-
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
4-
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
3+
if (version.value.trim.endsWith("SNAPSHOT")) {
4+
Some("snapshots" at nexus + "content/repositories/snapshots")
5+
}
6+
else {
7+
Some("releases" at nexus + "service/local/staging/deploy/maven2")
8+
}
59
}
610

711
publishMavenStyle := true
@@ -10,9 +14,20 @@ publishArtifact in Test := false
1014

1115
pomIncludeRepository := { _ => false }
1216

13-
pomExtra :=
14-
Helpers.generatePomExtra("[email protected]:jrudolph/sbt-dependency-graph.git",
15-
"scm:git:[email protected]:jrudolph/sbt-dependency-graph.git",
16-
"jrudolph", "Johannes Rudolph")
17+
scmInfo := Some(
18+
ScmInfo(
19+
browseUrl = url("https://github.com/jrudolph/sbt-dependency-graph"),
20+
connection = "scm:git:[email protected]:jrudolph/sbt-dependency-graph.git"
21+
)
22+
)
23+
24+
developers := List(
25+
Developer(
26+
"jrudolph",
27+
"Johannes Rudolph",
28+
29+
url("http://virtual-void.net")
30+
)
31+
)
1732

1833
useGpg := true

0 commit comments

Comments
 (0)