Commit Graph

11930 Commits

Author SHA1 Message Date
Dale Wijnand c98449e272
Rename & use more Instance.Aux, introduce Instance.Aux2. 2017-10-25 10:15:30 +01:00
Dale Wijnand 34f9e56311
Introduce and use KList.Aux 2017-10-25 10:15:29 +01:00
Dale Wijnand 3cd8f4dadf
Simplify Initialize.joinAny 2017-10-25 10:15:29 +01:00
eugene yokota 8eb5879101 Merge pull request #3659 from eed3si9n/wip/reboot
Adds "reboot dev"
2017-10-25 04:06:59 -04:00
Johannes Rudolph e0f5fecec5 Merge pull request #129 from benmccann/patch-1
Use https for resolver
2017-10-25 09:43:06 +02:00
Eugene Yokota 6ac4571197 Adds "reboot dev"
This adds a new option `dev` to the `reboot` command, which deletes the only the current sbt artifacts from the boot directory. `reboot dev` reads actively from `build.properties` instead of using the current state since `reboot` can restart into another sbt version.

In general, `reboot dev` is intended for the local development of sbt.

Fixes #3590
2017-10-25 03:19:10 -04:00
eugene yokota d5e1de08aa Merge pull request #3662 from dwijnand/scalafmt
Scalafmt 1.3, sbt-scalafmt 1.14
2017-10-25 00:19:47 -04:00
PanAeon 50a5c3cc85 Merge branch '1.x' into help-sbt-new 2017-10-24 21:35:36 +01:00
Dale Wijnand 81c5eaec33 Merge pull request #3633 from dwijnand/misc-2017-10-12
Misc 2017-10-12
2017-10-24 20:37:20 +01:00
Dale Wijnand 4c3cf6bfe7 Merge pull request #3634 from dwijnand/recompile247
[1.0.x] Track sources in base directory non-recursively
2017-10-24 20:35:59 +01:00
PanAeon 27a30a933a fix sbt help new does not explain how to use sbt new 2017-10-24 19:08:56 +01: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
Dale Wijnand e0d8079083
Scalafmt 1.3, sbt-scalafmt 1.14 2017-10-24 12:23:37 +01:00
Dale Wijnand 78c5ee92d3
Track sources in base directory non-recursively
Using a recursive Source meant that ~ looked into target. If you have
any source generators and use ~ with anything the invokes them, like
~compile, that means that the act of generating sources triggers ~ to
re-execute compile (perhaps only on macOS where the NIO WatchService
just polls, after an initial delay).

Requires sbt/io#78

Fixes #3501
2017-10-24 11:09:00 +01: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
Allan Timothy Leong bd1a38be54 Remove unused imports + variables 2017-10-22 16:31:03 +08:00
Eugene Yokota bcd21ba9b6 Merge branch 'wip/3648' into 1.x 2017-10-20 23:58:39 -05:00
eugene yokota 294a12fbf1 Merge pull request #3654 from scalacenter/json-locks
Add vscode-sbt-scala json locks
2017-10-20 17:19:45 -05:00
jvican 41a058c9b9
Add vscode-sbt-scala json locks
This is what gets generated after `compile`.
2017-10-20 20:05:16 +02:00
Dale Wijnand 9e85c08fb1 Merge pull request #3651 from eed3si9n/wip/scala2124
Bump to Scala 2.12.4
2017-10-20 06:44:09 -05:00
Eugene Yokota ae860d5a7d Bump to Scala 2.12.4
Uses Scala 2.12.4 for the build definition. This includes fix for runtime reflection of empty package members under Java 9.

Fixes sbt/sbt#3587
2017-10-20 00:23:29 -05:00
Simon Schäfer ebac491501 Disable patvars warnings
There are simply too many unused pattern vars and I don't want to fix
them right now. And watching all of the warnings everywhere is annoying.
2017-10-19 13:07:24 +02:00
Simon Schäfer 93e08b7ee7 Fix warnings about unused pattern vars in various projects 2017-10-19 13:07:24 +02:00
Simon Schäfer 187a861194 Fix unused pattern match vals in run project 2017-10-19 13:07:24 +02:00
Simon Schäfer ede94cb34c Fix unused pattern vals warnings in main-command project 2017-10-19 13:07:24 +02:00
Simon Schäfer 0454b873bf Fix warnings in protocol project
There were warnings about catch all exception handlers.
2017-10-19 13:07:24 +02:00
Simon Schäfer dc5411836a Fix warnings in util-copmlete project
There were warnings because of
- unused pattern match values
- deprecations
- unused methods (`def unary_-` and `def -`)
2017-10-19 13:07:24 +02:00
Simon Schäfer 38f550deef Fix warnings in util-collection project
There were warnings because of
- unused pattern match values
- deprecations
- a Xlint bug in scalac
2017-10-19 13:07:24 +02:00
Simon Schäfer 30d59d356d Disable warnings for unused params and implicits
There are many warnings because unused parameter are everywhere.
2017-10-19 13:07:24 +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
Dale Wijnand 4ce4fb72bd Merge pull request #3635 from PanAeon/escape-sbt-file-imports
Escape imports from sbt files
2017-10-13 16:17:21 +01:00
PanAeon 64241e0d3a Fixes #3464. Escape imports from sbt files, so if user creates a backquoted definition then task evalution will not fail. 2017-10-13 11:04:15 +01:00
Dale Wijnand 86be5359e7
Initial scaladoc Initialize/Keyed/KeyedInitialize 2017-10-12 20:31:25 +01:00
Dale Wijnand 10397926aa
Make sure of EvaluateTask in Extracted obvious 2017-10-12 15:36:05 +01:00
eugene yokota fa33b6e422 Merge pull request #3632 from dwijnand/trailing-println
Kill trailing println
2017-10-11 13:38:09 -04:00
Dale Wijnand d8e52bb5d4
Kill trailing println 2017-10-11 15:29:15 +01:00