Commit Graph

1188 Commits

Author SHA1 Message Date
Eugene Yokota 069104b989 Bump up log4j2 to 2.8.1 2017-04-03 03:22:47 -04:00
Eugene Yokota 1dab826ffd Store JValue into ObjectEvent 2017-04-03 03:22:33 -04:00
Eugene Yokota e21c78ebb0 Move JValue format here 2017-04-03 03:22:04 -04:00
Eugene Yokota 94a2e6cb12 Fix directory name 2017-04-03 03:21:14 -04:00
Eugene Yokota 66f345a303 Cross publish utilCollection
Fixes sbt/util#72
2017-04-03 03:20:36 -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
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
Dale Wijnand e984875b77
Move OptJsonWriter to public API 2017-03-21 10:47:01 +00:00
Dale Wijnand bbeecae0b1
Define OptJsonWriter & put it on AttributeKey 2017-03-21 00:09:17 +00:00
Eugene Yokota a12045ed42 some change for Scala 2.10 2017-02-15 18:52:04 -05:00
Dale Wijnand b6cad50327 Merge pull request #71 from eed3si9n/wip/eventlogging
event logging
2017-02-08 16:37:10 +00:00
Eugene Yokota a9377ce4a6 Implements registerStringCodec
Uses TypeTag to recover the full name of type parameter, which is calculated by StringTypeTag. This is sent along in ObjectEvent.
On the other end, we can lookup typeclass instances using the tag key.
2017-02-08 05:35:49 -05:00
eugene yokota 5306e29290 Merge pull request #69 from eed3si9n/fport/2855
[fport] Add build-level keys to the tab completion
2017-01-26 10:31:41 -05:00
Eugene Yokota 6e2f77f852 ProblemFormats 2017-01-25 23:25:24 -05:00
Eugene Yokota 1320c96953 Rename log events 2017-01-25 23:15:31 -05:00
Eugene Yokota f76e3aa2bb use java.util.Optional in Position 2017-01-25 20:58:37 -05:00
Eugene Yokota c985d9cdc0 Switch Scripted tests to used ManagedLogger 2017-01-24 21:13:58 -05:00
Eugene Yokota 51f9f91038 Adds BufferedAppender 2017-01-24 21:13:38 -05:00
Eugene Yokota 56b51df66b Avoid default params 2017-01-24 20:29:35 -05:00
Eugene Yokota 08e9ce9526 Implement basic event logging 2017-01-23 16:38:14 -05:00
Dale Wijnand 857dbf97fe Merge pull request #70 from eed3si9n/wip/fixappender
Handle ReusableObjectMessage
2017-01-18 12:01:55 +00:00
Eugene Yokota ca6a0be602 Handle ReusableObjectMessage
When log4j2 is not using async logging, it sends the ObjectMessage using ReusableObjectMessage.
2017-01-18 06:54:15 -05:00
Eugene Yokota ef2d079494 Revert "Merge pull request #41 from eed3si9n/wip/2469"
This reverts commit 0da2f30ee8, reversing
changes made to 93418589b7.
2017-01-16 13:26:31 -05:00
Dale Wijnand 5b8de3abca Merge pull request #68 from eed3si9n/topic/logging
Reimplement multi-logger using log4j2
2017-01-13 11:41:10 +00:00
Eugene Yokota 36eeb4578d Reimplement multi-logger using log4j2
This introduces ManagedLogger, which is a wrapper around Log4j2's async logging.
Log4j2 separates the notion of logger (the code that collects events) and appender (the code that acts on events). The old code is kept around intentionally to minimize breakage during transition.
2017-01-13 02:49:12 -05:00
Dale Wijnand b7fefb367f
Bump sbt/io to 1.0.0-M8, w/ fix to IO.relativize 2017-01-05 13:18:59 +00:00
Eugene Yokota 496e8d3e4f Cross building 2016-12-22 22:30:45 -05:00
eugene yokota 6b26b709f1 Merge pull request #66 from eed3si9n/wip/212
Scala 2.12
2016-12-22 15:30:50 -05:00
Eugene Yokota 008f9bee2e Work around Scala 2.12 init deadlock (SI-9824) 2016-12-22 14:37:59 -05:00
Eugene Yokota 2573c0f092 Scala 2.12 2016-12-22 11:59:00 -05:00
Eugene Yokota 61bdfd4367 Update Eval
https://github.com/typelevel/cats/blob/e2335730a958ce605f0d75f1b0d838454
2336aaf/core/src/main/scala/cats/Eval.scala
2016-12-22 11:50:34 -05:00
eugene yokota f26238e035 Merge pull request #65 from eed3si9n/wip/rebuild
sjson-new 0.7.0 and HList format
2016-12-22 11:26:43 -05:00
Eugene Yokota 5014e7f6b7 sjson-new 0.7.0 2016-12-22 11:19:48 -05:00
Dale Wijnand 7688de459b
Fix JsonFormat[HList]
Introduce HListJF, used as an inner TC so the outer HCons/HNil
JsonFormat can manage when the array starts and ends.
2016-12-19 15:26:10 +00:00
Dale Wijnand b0536f1a4d
new sjson-new 2016-12-15 18:02:39 +00:00
eugene yokota b5541e48ad Merge pull request #63 from dwijnand/files-info-format
Find a way to give FilesInfo an implicit JsonFormat
2016-12-10 23:01:35 -05:00
Dale Wijnand 65ffbfd1f2
Add mavenLocal 2016-12-06 15:34:03 +00:00
Dale Wijnand 11efe6846f
new sjson 2016-12-06 11:27:17 +00:00
Dale Wijnand 10183dcf3d
Upgrade sjson-new 2016-12-06 10:36:05 +00:00
Dale Wijnand 9a7abcb9c1
sbt/io upgrade 2016-12-01 14:39:24 +00:00
Dale Wijnand ac14fc8de8
Find a way to give FilesInfo an implicit JsonFormat 2016-12-01 14:38:57 +00:00
eugene yokota 6527382a4e Merge pull request #62 from dwijnand/fix-file-info
Fix stackoverflow in implicit FilesInfo JsonFormat
2016-11-30 12:25:30 -05:00
Dale Wijnand 92e90c559b
Fix stackoverflow in implicit FilesInfo JsonFormat
Fixes #61

* move it back into style
* use that in Tracked (uncomment some code)
* specify the style in the spec test
* must define absolute file.. (doesn't pass with relative, which is wrong imo)
2016-11-30 16:52:10 +00:00
Dale Wijnand 1368f5f9db
Cleanup Input/Output/CacheStore 2016-11-30 16:51:51 +00:00
Dale Wijnand c6e793b03c
Test FilesInfo brokenness 2016-11-30 16:51:51 +00:00
Dale Wijnand 71d104da3d
Tweaks in FileInfo 2016-11-30 16:51:51 +00:00
Dale Wijnand 875a30cc70
Cleanup FileInfo 2016-11-30 16:51:51 +00:00
Dale Wijnand d86eab7a7a
sbt-doge 0.1.5 for plz 2016-11-29 11:07:36 +00:00
Dale Wijnand 89a03b7dae
Scala 2.12.0 & sbt/io 1.0.0-M7 2016-11-29 10:55:27 +00:00