Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: use curly braces for disabling tasks #1876

Merged
merged 1 commit into from
Aug 30, 2017

Conversation

fthomas
Copy link
Member

@fthomas fthomas commented Aug 30, 2017

Using parentheses for disabling tasks with sbt 1.0 will issue the
following deprecation warning:

warning: Adaptation of argument list by inserting () is deprecated: this
is unlikely to be what you want.
        signature: DefinableTask.:=(v: S): sbt.Def.Setting[sbt.Task[S]]
  given arguments: <none>
 after adaptation: DefinableTask.:=((): Unit)
  publish := (),
          ^

This can be fixed with curly braces which is also perfectly fine with
sbt 0.13. So this can be merged right now and will make the actual
upgrade to sbt 1.0 easier.

Using parentheses for disabling tasks with sbt 1.0 will issue the
following deprecation warning:
```
warning: Adaptation of argument list by inserting () is deprecated: this
is unlikely to be what you want.
        signature: DefinableTask.:=(v: S): sbt.Def.Setting[sbt.Task[S]]
  given arguments: <none>
 after adaptation: DefinableTask.:=((): Unit)
  publish := (),
          ^
```

This can be fixed with curly braces which is also perfectly fine with
sbt 0.13. So this can be merged right now and will make the actual
upgrade to sbt 1.0 easier.
@fthomas fthomas mentioned this pull request Aug 30, 2017
16 tasks
@codecov-io
Copy link

Codecov Report

Merging #1876 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1876   +/-   ##
=======================================
  Coverage   94.97%   94.97%           
=======================================
  Files         241      241           
  Lines        4195     4195           
  Branches      109      109           
=======================================
  Hits         3984     3984           
  Misses        211      211

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 260171d...a7a13a6. Read the comment docs.

@kailuowang kailuowang merged commit 52457d2 into typelevel:master Aug 30, 2017
@fthomas fthomas deleted the curly-braces branch August 30, 2017 19:41
LukaJCB pushed a commit to LukaJCB/cats that referenced this pull request Sep 1, 2017
Using parentheses for disabling tasks with sbt 1.0 will issue the
following deprecation warning:
```
warning: Adaptation of argument list by inserting () is deprecated: this
is unlikely to be what you want.
        signature: DefinableTask.:=(v: S): sbt.Def.Setting[sbt.Task[S]]
  given arguments: <none>
 after adaptation: DefinableTask.:=((): Unit)
  publish := (),
          ^
```

This can be fixed with curly braces which is also perfectly fine with
sbt 0.13. So this can be merged right now and will make the actual
upgrade to sbt 1.0 easier.
@kailuowang kailuowang added this to the 1.0.0-RC1 milestone Oct 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants