Commit Graph

263 Commits

Author SHA1 Message Date
Johannes Rudolph 6b176a9ca1
Don't fail in parsing when whatDependsOn is called without running any other command first, fixes #95
If no other command was run first, tab completion runs now in degraded mode
again, not showing any concrete suggestions but just the general syntax.

This probably regressed in #155 where I probably couldn't remember the reason
for the fallback...
2018-08-23 16:53:32 +02:00
Johannes Rudolph cf7926d4f5
Automatic reformattig
Somehow this one was missed to be published before.
2018-07-17 12:13:58 +02:00
Johannes Rudolph 90f6cedb34
Merge pull request #157 from jrudolph/release-0.9.1
Release notes for 0.9.1
2018-07-17 12:04:53 +02:00
Johannes Rudolph aac468140f
Merge pull request #155 from jrudolph/whatDependsOn-without-version
What depends on without version
2018-07-17 12:01:51 +02:00
Johannes Rudolph f4bbf28459
Release notes for 0.9.1 2018-07-17 12:01:33 +02:00
Johannes Rudolph 9305521f19
Add test for whatDependsOn 2018-07-17 11:51:13 +02:00
Johannes Rudolph 1c35c67df3
Merge pull request #156 from jrudolph/fix-150
Derive resolution-cache dir location from ivyConfiguration, fixes #150
2018-07-17 11:50:06 +02:00
Johannes Rudolph 71f0e933d4
Derive resolution-cache dir location from ivyConfiguration, fixes #150 2018-07-17 11:41:31 +02:00
Johannes Rudolph 6dbcad89d6
Merge master and adapt solution
A new case class ArtifactPattern was created which models both searching with
and without version.
2018-07-16 14:59:16 +02:00
Johannes Rudolph e597bcf804
Merge pull request #154 from jrudolph/modernize-build
Update to sbt 1.1.6
2018-07-16 12:09:59 +02:00
Johannes Rudolph 321f70b17f
Update to sbt 1.1.6
+ new plugin versions
+ new dependency versions
+ freshly autoformatted
2018-07-16 11:59:20 +02:00
Johannes Rudolph 18a0705139
Merge pull request #115 from dmcnelis/master
Adding a clarifying remark to the whatDependsOn command, to make it c…
2018-07-16 11:44:39 +02:00
Johannes Rudolph 978c3c4e2c
Move the sbt invocation notice 2018-07-16 11:44:03 +02:00
Johannes Rudolph 3e41ea7965
Merge pull request #152 from xuwei-k/procedure-syntax
fix procedure syntax
2018-07-16 11:38:50 +02:00
xuwei-k b3fd3ce7e4 fix procedure syntax 2018-05-23 13:15:49 +09:00
Johannes Rudolph 3b1207e9c2
Merge pull request #151 from leifwickland/patch-1
Fix minor typo
2018-04-11 17:09:47 +02:00
Leif Wickland 6f4dfaa45e
Fix minor typo. 2018-04-10 10:22:48 -06:00
Johannes Rudolph 5e3bbdb8c2
README: sbt 0.13 is only supported starting from 0.13.10
Fixes #148.
2018-01-02 13:55:48 +01:00
Johannes Rudolph 1a56850401 Merge pull request #142 from xuwei-k/patch-1
use oraclejdk8
2017-10-26 09:41:09 +02:00
kenji yoshida 6cff0c5e8d use oraclejdk8
travis-ci no longer support oraclejdk7

https://github.com/travis-ci/travis-ci/issues/7884#issuecomment-308451879
2017-10-26 13:33:28 +09:00
Johannes Rudolph 5e0aa1d0fc Add dates to released versions
It's been a long ride... almost six years by now :)
2017-10-25 17:59:24 +02:00
Johannes Rudolph d9b159ba8a Replace notes file by a single CHANGELOG.md 2017-10-25 17:54:18 +02:00
Johannes Rudolph 85284c6a4f Add release notes for 0.9.0 (even if they cannot be published any more) 2017-10-25 17:50:10 +02:00
Johannes Rudolph e0f5fecec5 Merge pull request #129 from benmccann/patch-1
Use https for resolver
2017-10-25 09:43:06 +02:00
Johannes Rudolph 93899f2eca Update README to de-emphasize `dependencyGraph` which is missing from sbt 1.0 version 2017-10-24 18:35:40 +02:00
Johannes Rudolph 2178b71c62 Merge pull request #137 from jrudolph/w/update-to-sbt-1.0
Ongoing progress on migrating to sbt 1.0
2017-10-24 18:33:55 +02:00
Johannes Rudolph 90fc1a7f4f Update README to reflect 0.9.0 changes 2017-10-24 18:18:21 +02:00
Johannes Rudolph 0c59e1ba34
Merge commit 'refs/pull/140' into w/update-to-sbt-1.0
I merged these changes without actually applying them to keep authorship
information about the changes that were proposed by Masse Guillaume of
Scala Center.

On the other side of the merge I added lots of small changes which were
either inspired or just plainly copied from the ones merged in here.

In the diff you can see which changes were not taken over.
2017-10-24 17:50:20 +02:00
Johannes Rudolph 57356c5b54 Slight refactorings in DependencyGraphSettings 2017-10-24 17:49:22 +02:00
Johannes Rudolph 014e74c68b sbt-dynver produces named builds, so use those to detect when to use snapshot repo 2017-10-24 17:24:20 +02:00
Johannes Rudolph f82df10711 Fix compilation warnings 2017-10-23 17:35:30 +02:00
Johannes Rudolph 68bc4f53cf Fix sbt-test issues 2017-10-23 17:35:14 +02:00
Johannes Rudolph a66dabcc3b Make ignoreMissingUpdate work again for both sbt 0.13 and 1.0 2017-10-23 17:24:49 +02:00
Johannes Rudolph d3676dd17f Fix configuration usage for sbt 0.13 2017-10-23 16:53:00 +02:00
Johannes Rudolph 73faf777f2 Make autoconversion from sbinary -> jsonnew only apply in sbt 1.x 2017-10-23 16:52:38 +02:00
Johannes Rudolph e813b28a1c Move SbtAccess to our own package below sbt to prevent accidental namespace clashes with other plugins / sbt 2017-10-23 16:44:15 +02:00
Johannes Rudolph cfa9f462cf Test for all sbt versions on travis 2017-10-23 16:26:43 +02:00
Johannes Rudolph 0bbeea3977 Modernize and adapt build, update to newest versions 2017-10-23 16:26:43 +02:00
Johannes Rudolph 8d5e9d9015 Cleanup README 2017-10-23 16:14:18 +02:00
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
Johannes Rudolph 05ee0e4f1d
Fix scripted tests and detect version automatically 2017-10-06 11:43:32 +02:00
Johannes Rudolph 00c3ab7da6 Upgrade to released sbt-compat 1.1.0 2017-10-06 11:43:08 +02:00
Martynas Mickevičius 58947bfec6 Use sbt-compat lib 2017-09-07 17:04:59 +02:00
Johannes Rudolph 0e20a090f3 half-broken initial attempt at sbt 1.0.0 support 2017-08-29 16:48:27 +02:00
Johannes Rudolph 279dea3514
only provide `dependencyGraph` / `asciiGraph` in sbt 0.13 2017-08-14 15:41:51 +02:00
Johannes Rudolph dd6c1c4206 move to sbt-pgp 1.1.0-M1 2017-08-14 15:27:00 +02:00
Johannes Rudolph c5700e9d74 update to sbt 0.13.16 2017-08-14 15:26:26 +02:00
Ben McCann f8eace182d Use https for resolver
See http://www.ontoillogical.com/blog/2014/07/28/how-to-take-over-any-java-developer/
2017-06-06 10:11:36 -07:00
Johannes Rudolph 7a92c224d8 Merge pull request #125 from OleksandrBezhan/docs/readme-markdown
Fix readme markdown
2017-06-06 18:14:32 +02:00