Commit Graph

17940 Commits

Author SHA1 Message Date
Kazuyoshi Kato 557cd8036d Report all errors including POM-related ones
Resolution#errors don't have POM-related errors (e.g. #157).
The new `metadataErrors` method would replace the original `errors`
eventually.
2017-03-25 23:07:49 -07:00
Guillaume Martres 747aa48c9c Fix inputTaskDyn not working
This fixes the following error when trying to use inputTaskDyn in a build:

[error] /tmp/sbt_8316130f/input-task-dyn/build.sbt:11: error: Macro
expansion contains free type variable T defined by wrap in
InputConvert.scala:76:20. Have you forgotten to use c.WeakTypeTag
annotation for this type parameter? If you
have troubles tracking free type variables, consider using -Xlog-free-types (out-1)
[error]     runFoo := Def.inputTaskDyn { (out-1)
[error]                                ^ (out-1)
[info] [error] sbt.compiler.EvalException: Type error in expression (out-3) (out-1)

I have no idea what the error means, I just implemented the suggested fix.
2017-03-24 17:41:14 +01:00
eugene yokota 317085a458 Merge pull request #3031 from eed3si9n/wip/bump_modules
Bump underlying modules to latest
2017-03-23 22:19:53 -07:00
Eugene Yokota 9ca3d9006c Zinc no longer compiles 2.11.0 or 2.11.1 2017-03-24 00:16:01 -04:00
Eugene Yokota ef6193e8cf Adds Hello world for 2.10, 2.11, and 2.12 2017-03-23 23:56:42 -04:00
Eugene Yokota 742c9c1762 adjust to Zinc change 2017-03-23 16:35:39 -04:00
Eugene Yokota c96630d6a6 Fixed by sbt/zinc#240 2017-03-23 16:15:26 -04:00
Jentsch 330134d5d9 Simplified handling of undefined settings
(Also avoiding null)
2017-03-23 21:07:50 +01:00
Jentsch 363a841f5a Replaced linesIterator by not deprecated lines method 2017-03-23 21:07:50 +01:00
Jentsch 7caee99846 Prevent compiler from inferring existential 2017-03-23 21:07:50 +01:00
Jentsch a244509b67 Replaced structural types by actual classes 2017-03-23 21:07:50 +01:00
Jentsch 711e744d75 Let compiler explain warnings 2017-03-23 21:07:50 +01:00
Jentsch 2acad5bcb2 Replaced console.err.println by sbt logger 2017-03-23 21:07:50 +01:00
Eugene Yokota bb9db97824 withNameHashing(true) is removed 2017-03-23 15:59:09 -04:00
Eugene Yokota e6d11ed83d Fix the bridge selection 2017-03-23 15:51:16 -04:00
Eugene Yokota b6d8b565de Codegen change 2017-03-23 14:30:51 -04:00
Eugene Yokota 180bdfd129 Bump underlying modules to latest 2017-03-23 12:41:24 -04:00
Alexandre Archambault 11a3773a11 Merge pull request #471 from coursier/topic/fix-snapshot-versioning-artifacts
Fix missing artifacts for snapshot versioning
2017-03-23 16:52:14 +01:00
Alexandre Archambault 729c62278a Fix missing artifacts for snapshot versioning
Regression since recent overhaul of artifact type handling
2017-03-23 14:07:48 +01:00
Eugene Yokota d6f0924689 Util 1.0.0-M20 2017-03-22 13:59:51 -04:00
eugene yokota 6c768a1ca3 Merge pull request #73 from dwijnand/self-serialisable-attrkeys
Define OptJsonWriter & put it on AttributeKey
2017-03-21 16:05:48 -07:00
Dale Wijnand d91c3de736
Rename to StrictMode 2017-03-21 21:50:45 +00:00
Alexandre Archambault 1fbf06e0b0 Update gitter links 2017-03-21 20:06:20 +01:00
Dale Wijnand 6c7f99005e
Allow opting out of the fallback OptJsonWriter
Simply

    import OptJsonWriter.OptOut._

And you'll get the implicit lift, but not the implicit fallback.

You get an ambiguous compile error like this:

    [error] /d/sbt-util/internal/util-collection/src/main/scala/sbt/util/OptJsonWriter.scala:28: ambiguous implicit values:
    [error]  both method conflictingFallback1 in trait OptOut0 of type [A]=> sbt.util.NoJsonWriter[A]
    [error]  and method conflictingFallback2 in trait OptOut0 of type [A]=> sbt.util.NoJsonWriter[A]
    [error]  match expected type sbt.util.OptJsonWriter[Foo]
    [error]     val x = implicitly[OptJsonWriter[Foo]]
    [error]                       ^
2017-03-21 17:12:10 +00:00
Alexandre Archambault 8dd90a6491 Merge pull request #467 from coursier/topic/scalajs-0.6.15
Switch to scalajs 0.6.15
2017-03-21 17:50:01 +01:00
Alexandre Archambault 621d0ca18e Switch to scalajs 0.6.15 2017-03-21 15:01:02 +01:00
Alexandre Archambault aa7794f950 Merge pull request #466 from coursier/topic/updates
Updates
2017-03-21 13:17:36 +01:00
Alexandre Archambault 9e2d1b3686 Update flaky test 2017-03-21 11:56:44 +01:00
Alexandre Archambault 49eeab9097 Set working dir for it web server on Windows CI 2017-03-21 11:56:44 +01:00
Dale Wijnand e984875b77
Move OptJsonWriter to public API 2017-03-21 10:47:01 +00:00
Dale Wijnand 4e29083f3b Merge pull request #3033 from xuwei-k/isSnapshot-the-the
fix typo
2017-03-21 08:20:04 +00:00
Dale Wijnand e430c223da Merge pull request #3034 from xuwei-k/testing-sbt-plugins-url
update "Testing sbt plugins" url
2017-03-21 08:19:47 +00:00
xuwei-k 52dc8cca68 update "Testing sbt plugins" url 2017-03-21 16:49:36 +09:00
xuwei-k f04dbe50bf fix typo 2017-03-21 16:45:42 +09:00
Dale Wijnand bbeecae0b1
Define OptJsonWriter & put it on AttributeKey 2017-03-21 00:09:17 +00:00
Alexandre Archambault 03ee4727ba Only use relative paths on Windows CI
Working dir seems to have a different absolute path since the
organization change
2017-03-20 11:51:59 +01:00
Alexandre Archambault 4d95909089 Use https repo (Windows CI) 2017-03-20 11:16:06 +01:00
Alexandre Archambault c25b5517ed Update organization here or there 2017-03-20 00:41:04 +01:00
Alexandre Archambault cdcb2fa6d0 Update organization in README 2017-03-20 00:15:19 +01:00
Jentsch 82b1d4287b Bump jquery version 2017-03-20 00:04:08 +01:00
Alexandre Archambault 2532453266 Sync README.md with doc/README.md
Recent changes in MavenRepository were not reflected in the current
README.md
2017-03-20 00:04:08 +01:00
Dale Wijnand b57922efaf Merge pull request #75 from sbt/wip/bump
sbt-contraband 0.3.0-M4
2017-03-18 21:00:27 +00:00
Eugene Yokota 016db588d4 sbt-contraband 0.3.0-M4 2017-03-17 23:03:37 -04:00
Dale Wijnand f760ef41fb Merge pull request #147 from sbt/wip/mkdir
mkdir -p
2017-03-17 21:46:42 +00:00
Eugene Yokota 1ea1f5d52d mkdir -p
Fixes sbt/sbt#3005
2017-03-17 16:54:04 -04:00
eugene yokota 304dd726dc Merge pull request #146 from monktastic/patch-1
Preserve quotes in system properties
2017-03-16 17:53:12 -07:00
monktastic c7f3be3b58 Preserve quotes in system properties
Today you cannot have spaces in system properties:

$ sbt -Dfoo="bar baz" ...

It passes [-Dfoo=bar] and [baz] to java (see https://github.com/sbt/sbt/issues/2787).

This change allows you to do:

$ sbt "-Dfoo=bar baz"

which will pass ["-Dfoo=bar baz"]. And both of these two:

$ sbt "-Dfoo=bar"
$ sbt -Dfoo=bar

still work, passing [-Dfoo=bar].
2017-03-16 17:01:57 -07:00
Dale Wijnand cb756f5443 Merge pull request #3016 from xuwei-k/Class-newInstance
s/newInstance/getDeclaredConstructor().newInstance()
2017-03-15 10:25:01 +01:00
xuwei-k 5b00e7326b s/newInstance/getDeclaredConstructor().newInstance()
java.lang.Class#newInstance deprecated since Java 9

http://download.java.net/java/jdk9/docs/api/java/lang/Class.html#newInstance--

```
Deprecated. This method propagates any exception thrown by the nullary constructor, including a checked exception. Use of this method effectively bypasses the compile-time exception checking that would otherwise be performed by the compiler. The Constructor.newInstance method avoids this problem by wrapping any exception thrown by the constructor in a (checked) InvocationTargetException.
The call

 clazz.newInstance()

can be replaced by

 clazz.getDeclaredConstructor().newInstance()

The latter sequence of calls is inferred to be able to throw the additional exception types InvocationTargetException and NoSuchMethodException. Both of these exception types are subclasses of ReflectiveOperationException.
Creates a new instance of the class represented by this Class object. The class is instantiated as if by a new expression with an empty argument list. The class is initialized if it has not already been initialized.
```
2017-03-15 11:53:49 +09:00
Alexandre Archambault 14f297b4f7 Merge pull request #457 from alexarchambault/topic/tweak-launcher
Tweak launcher
2017-03-14 16:47:18 +01:00