Commit Graph

23 Commits

Author SHA1 Message Date
Guillaume Massé 66f801bf92 Compiles with sbt 1.0 and sbt 0.13
1. ascii-graphs

We need a 2.12 version of ascii-graphs. The last commit to the project is in June 2013 (https://github.com/mdr/ascii-graphs/graphs/contributors). We are now in October 2017. I opened a PR (https://github.com/mdr/ascii-graphs/pull/11) but I don't expect any progress on this front. We can maintain a fork or drop ascii-graphs.

2. ignoreMissingUpdate

ignoreMissingUpdate is a tricky one. Here is some explanation:

we need to duplicate the updateTask

in sbt it's define as:

```scala
def updateTask: Initialize[Task[UpdateReport]] = Def.task {
  // ...
  val uc0 = updateConfiguration.value
  // ...
}
```

since it's not scoped to our task (ex: `updateConfiguration in ignoreMissingUpdate`) we cannot just do

```scala
updateConfiguration in ignoreMissingUpdate := {
  updateConfiguration.value.withMissingOk(true)
}
```

For example, the following example yield `"u2: false"

```
val update2 = TaskKey[Unit]("update2", "...")
val update2Configuration = SettingKey[Boolean]("...")

update2 := Def.task {
  val u2 = (update2Configuration in update2).value
  println(s"u2: $u2")
}.value

update2Configuration := false
update2Configuration in update2 := true
```

3. cross publishing

We can use the ^ operator to publish. For example: `sbt "^ publish"` to publish for both sbt 0.13 and 1.0.
2017-10-17 15:42:00 +02:00
Guillaume Massé 8591a5adae Bump to sbt 0.13.16, drop support for sbt 0.12.x 2017-10-16 16:44:26 +02:00
xuwei-k 775cad68fe remove sbt-cross-building 2017-06-05 23:07:18 +09:00
Johannes Rudolph 83a311b4af make it compile again with sbt 0.13.6 2015-11-26 11:53:47 +01:00
Johannes Rudolph 0c4bc73a64 enable Scalariform auto-formatting 2015-11-17 17:32:02 +01:00
Johannes Rudolph 7b0e090662 remove support for sbt 0.11 + 0.12 2015-11-14 16:25:13 +01:00
Johannes Rudolph 69946f3e2c modernize build 2014-12-22 12:17:52 +01:00
Johannes Rudolph 0bcd2e03f4 fixes #36: Graph.insertBar doesn't take maxColumn into account leading to StringIndexOutOfBoundsException 2013-07-31 15:22:45 +02:00
Johannes Rudolph f7c66f5cd1 add support for sbt 0.13, fixes #35 2013-07-22 16:24:15 +02:00
Johannes Rudolph 60aa77dc10 more warnings 2013-07-22 16:12:10 +02:00
Johannes Rudolph 5817584e44 workaround for jrudolph/sbt-cross-building#24 2013-07-22 16:11:59 +02:00
Johannes Rudolph 236ecf9e6b fix dependencies to use versions which are available for scala 2.9 and 2.10 2013-07-22 16:04:58 +02:00
Johannes Rudolph 0ff4284cb6 add sbt 0.13 to the cross building versions 2013-07-22 16:03:39 +02:00
Johannes Rudolph 7acc3ac3f6 use new sbt-cross-building plugin 2013-07-22 16:02:49 +02:00
Johannes Rudolph 445d53a583 Merge commit 'refs/pull/10'
Conflicts:
	build.sbt
2012-10-21 18:59:36 +02:00
Johannes Rudolph bb98a5faca fixes #17: don't fail if some artifacts are missing, show error in graph, tests 2012-10-21 11:35:42 +02:00
Johannes Rudolph fc51b4c16b publish for 0.12, fixes #14 2012-08-27 11:15:58 +02:00
Matt Russell d3cd49bd73 Add support for ASCII-art dependency graphs 2012-06-26 08:54:24 +01:00
Johannes Rudolph 7ad5a74d4d update build to sbt 0.11.3 2012-05-21 17:48:46 +02:00
Johannes Rudolph 2c2af36531 add information for publishing to sonatype 2012-02-13 11:18:25 +01:00
Johannes Rudolph 43c6006f4e add ls metadata 2011-11-29 15:24:13 +01:00
Johannes Rudolph fb38f8d2d2 bump version 2011-11-18 11:15:15 +01:00
Johannes Rudolph da69fd823d initial version 2011-11-15 16:06:02 +01:00