sbt, the interactive build tool
Go to file
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
internal Allow opting out of the fallback OptJsonWriter 2017-03-21 17:12:10 +00:00
project use java.util.Optional in Position 2017-01-25 20:58:37 -05:00
.gitignore Add target/ to .gitignore 2016-04-07 12:47:36 +02:00
.java-version Scala 2.12 2016-12-22 11:59:00 -05:00
.travis.yml Scala 2.12 2016-12-22 11:59:00 -05:00
CONTRIBUTING.md Using doge to release correctly 2015-09-05 01:42:34 -04:00
LICENSE Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
NOTICE Update CONTRIBUTING.md 2014-04-14 12:16:06 -04:00
README.md readme 2015-08-20 01:02:40 -04:00
build.sbt Define OptJsonWriter & put it on AttributeKey 2017-03-21 00:09:17 +00:00

README.md

utility modules for sbt

cd sbt-modules/util-take2
git filter-branch --index-filter 'git rm --cached -qr -- . && git reset -q $GIT_COMMIT -- build.sbt LICENSE NOTICE interface util/appmacro util/collection util/complete util/control util/log util/logic util/process util/relation cache' --prune-empty
git reset --hard
git gc --aggressive
git prune