Zac Sweers
538890e8c0
Switch to spotless and format code ( #1196 )
...
* Add spotless configuration
* Reformat!
* Add copyright config for build.gradle.kts files
* Add toeholds for headers
2020-08-27 23:40:15 -04:00
Zac Sweers
4dd4a9d222
Migrate to Gradle ( #1159 )
...
* Start gradle root
* Clean up test API ambiguities
These don't compile in gradle anymore and the team[] warns
* Exclude .gradle dirs in git
* Set up moshi module
* Set up moshi-adapters
* Add repositories to subprojects
* Set target/source compatibility
* Set up examples
* Fix location of reflect/test dir
* Set up moshi-kotlin
* Set up code gen
* Opportunistic update code gen deps
* Fix up with code gen
* Set up kotlin tests
* Update snapshots
* Update travis build
* Configure checkstyle
* Cache gradle
* Finish fixing up checkstyle
* Now disable checkstyle until we can fix them all :|
* Update contributing
* Fix tests in codegen
* Remove unnecessary annotation
* Remove maven stuff!
* Suppress warning
* Remove jcenter
* Consolidate dependencies
* Revert "Clean up test API ambiguities"
This reverts commit 3ead69b844b5d7f66134b721e95581f5df1cccd6.
* Fix incap dep
* Opportunistically fix some small kotlinpoet deprecations
* Automatically apply the stdlib to all kotlin projects
* Opportunistic move to opt-in and remove unnecessary annotations
The kotlin maven plugin didn't handle these well in the IDE, gradle does
* Fix Type doc warning
* Fix okio version
* Fix dokka support
* Fix copypasta
* Use new snapshot
* Kotlin 1.4.0
2020-08-27 16:50:28 -04:00
Jesse Wilson
28831b04cf
[maven-release-plugin] prepare for next development iteration
2020-08-26 21:38:44 -04:00
Jesse Wilson
cff20193c2
[maven-release-plugin] prepare release moshi-parent-1.10.0
2020-08-26 21:38:36 -04:00
Jesse Wilson
b287596c60
[maven-release-plugin] prepare for next development iteration
2019-11-17 09:53:53 -05:00
Jesse Wilson
89a254d644
[maven-release-plugin] prepare release moshi-parent-1.9.2
2019-11-17 09:53:46 -05:00
Jesse Wilson
878e9a86d6
[maven-release-plugin] prepare for next development iteration
2019-10-30 23:26:50 -04:00
Jesse Wilson
0af27a39a6
[maven-release-plugin] prepare release moshi-parent-1.9.1
2019-10-30 23:26:43 -04:00
Jesse Wilson
4637950bab
[maven-release-plugin] prepare for next development iteration
2019-10-29 07:57:56 -04:00
Jesse Wilson
0c8005bcee
[maven-release-plugin] prepare release moshi-parent-1.9.0
2019-10-29 07:57:49 -04:00
Eric Cochran
a83a9b79e4
Use peekJson in the DefaultOnDataMismatchAdapter example. ( #809 )
2019-02-15 17:09:50 -08:00
Jesse Wilson
6b6c1af907
[maven-release-plugin] prepare for next development iteration
2018-11-09 10:04:52 +11:00
Jesse Wilson
eb7110bf59
[maven-release-plugin] prepare release moshi-parent-1.8.0
2018-11-09 10:04:36 +11:00
Jesse Wilson
2cb81857ac
[maven-release-plugin] prepare for next development iteration
2018-09-24 22:55:49 -04:00
Jesse Wilson
9a652f8788
[maven-release-plugin] prepare release moshi-parent-1.7.0
2018-09-24 22:55:35 -04:00
Jesse Wilson
31ef245eeb
[maven-release-plugin] prepare for next development iteration
2018-05-14 23:00:15 -04:00
Jesse Wilson
bf4d1f8693
[maven-release-plugin] prepare release moshi-parent-1.6.0
2018-05-14 23:00:02 -04:00
Jesse Wilson
986cc4c794
[maven-release-plugin] prepare for next development iteration
2018-05-06 21:50:45 -04:00
Jesse Wilson
c2f890879c
[maven-release-plugin] prepare release moshi-parent-1.6.0-RC1
2018-05-06 21:50:39 -04:00
Jesse Wilson
c4e4e8582d
Add an example that decodes multiple formats
2018-04-10 22:08:31 -04:00
Eric Cochran
dbdf48777c
Simplify example code. ( #483 )
...
* Simplify example code.
This was copied code from a different example that used the delegate annotations.
* Make brackets consistent.
2018-04-05 11:05:40 -07:00
Eric Cochran
fbe95fe51e
Add example for custom qualifier with an element.
2018-04-04 18:41:15 -07:00
Jesse Wilson
5ad9d31bd8
Move modules into their own packages.
...
This sets the Automatic-Module-Name for moshi, moshi-adapters, and moshi-kotlin.
It moves moshi-adapters into its own .adapters package and forwards the existing
adapter. It moves the moshi-kotlin into its own .kotlin package and forwards the
existing adapter.
I'm not certain this is necessary or sufficient, but I think it's the right idea
for JPMS compatibility.
2018-02-07 04:41:06 -05:00
Jesse Wilson
5d12c22f44
ByteStrings example. ( #419 )
...
Closes: https://github.com/square/moshi/issues/31
2018-01-07 23:04:25 -05:00
Jesse Wilson
7205690bf5
Add a standard example for JSON adapter factories. ( #420 )
...
Closes: https://github.com/square/moshi/issues/136
2018-01-07 23:04:07 -05:00
Jesse Wilson
8dfe9edc00
Merge pull request #352 from emmaguy/emmaguy/add-recipe-type-adapter-delegate
...
Add an example custom Adapter which delegates
2017-09-25 13:31:20 -04:00
Eric Cochran
eed3295495
Fix not writing value to JsonWriter in example.
2017-09-25 13:02:36 -04:00
Emma Guy
816f6f81c6
Add an example custom adapter which delegates
2017-09-24 13:40:01 +01:00
jwilson
798f14bda5
[maven-release-plugin] prepare for next development iteration
2017-05-14 22:20:00 -04:00
jwilson
f42ae45f4c
[maven-release-plugin] prepare release moshi-parent-1.5.0
2017-05-14 22:19:55 -04:00
Jesse Wilson
c65b3bf1cb
Import jsr305 and use it to mark @Nullable stuff. ( #297 )
2017-05-06 20:31:24 -04:00
jwilson
0ea1959b7e
Enable Checkstyle 7.7.
2017-05-06 14:48:55 -04:00
jwilson
49092ece96
[maven-release-plugin] prepare for next development iteration
2017-02-04 15:20:11 -05:00
jwilson
d075a3e56a
[maven-release-plugin] prepare release moshi-parent-1.4.0
2017-02-04 15:20:05 -05:00
jwilson
559e3a22ea
Use readJsonValue() in DefaultOnDataMismatchAdapter.
2017-02-04 14:22:24 -05:00
jwilson
af6ff5e6e3
Example adapter that recovers from JsonDataExceptions.
2017-02-02 23:24:08 -05:00
Eric Cochran
832ae4b34f
Add Unwrap JsonAdapter.Factory sample
2017-01-31 18:24:42 -08:00
jwilson
e1809aa6f9
[maven-release-plugin] prepare for next development iteration
2016-10-21 09:35:13 -04:00
jwilson
6d623663cb
[maven-release-plugin] prepare release moshi-parent-1.3.1
2016-10-21 09:35:10 -04:00
jwilson
4ff50c47ac
[maven-release-plugin] prepare for next development iteration
2016-10-15 14:18:34 -04:00
jwilson
71ded8d091
[maven-release-plugin] prepare release moshi-parent-1.3.0
2016-10-15 14:18:31 -04:00
jwilson
23e6d36a8b
[maven-release-plugin] prepare for next development iteration
2016-05-28 14:27:08 -04:00
jwilson
5f0e509b8d
[maven-release-plugin] prepare release moshi-parent-1.2.0
2016-05-28 14:27:04 -04:00
jwilson
ad3506ffed
[maven-release-plugin] prepare for next development iteration
2016-01-18 17:17:10 -05:00
jwilson
30a4c3c92e
[maven-release-plugin] prepare release moshi-parent-1.1.0
2016-01-18 17:17:08 -05:00
jwilson
d8820b03f4
Document @Json and @JsonQualifier in the README.
2016-01-11 00:24:00 -08:00
David Mihola
68f2fb1d74
Add example for custom JsonAdapter.
2015-10-08 22:54:47 -04:00
jwilson
e6a77041a1
[maven-release-plugin] prepare for next development iteration
2015-09-27 13:25:21 -04:00
jwilson
e93e6574ca
[maven-release-plugin] prepare release moshi-parent-1.0.0
2015-09-27 13:25:18 -04:00
jwilson
1f0e7f61ad
Date adapter example.
2015-09-27 12:40:57 -04:00