Граф коммитов

56 Коммитов

Автор SHA1 Сообщение Дата
Ben Bader 80fede4f81
Bump antlr from 4.7.1 -> 4.8-1 (#351) 2020-05-16 21:25:44 -07:00
Ben Bader 8aa80fab65
Bump guava from 23.0 to 29.0-jre (#349) 2020-05-15 15:18:43 -07:00
Ben Bader 672a6b6710
Bump truth to 1.0.1, compile-testing to 0.18 (#347)
* Bump truth to 1.0.1, compile-testing to 0.18

* Remove spurious compile-testing dependency from thrifty-kotlin-codegen
2020-05-15 12:20:09 -07:00
Ben Bader adff16b5e1
kotlintest 3.1.8 -> kotest 4.0.5 (#346) 2020-05-15 11:52:22 -07:00
Ben Bader 9324a79dde
Bump mockito-kotlin from 2.0.0 to 2.2.0 (#345) 2020-05-15 10:41:08 -07:00
Ben Bader e1a390e2bf
Move to gradle-maven-publish-plugin (#343) 2020-05-15 00:41:11 -07:00
Ben Bader cd2fb0cd88
Bump shadow-jar to 5.2.0 (#342)
Also, remove some deprecated uses of the shadowJar task's `archivePath`
property, taking the opportunity to more lazily configure test tasks.
2020-05-14 11:05:53 -07:00
Ben Bader f63473e8a2
Bump Gradle to version 6.4 (#337) 2020-05-13 22:59:20 -07:00
Ben Bader 4f697f4446
Bump clikt to from 1.4.0 to 2.6.0 (#336) 2020-05-13 22:37:24 -07:00
Ben Bader 81bae583a5
Bump kotlin from 1.3.0 to 1.3.72 (#335) 2020-05-13 22:07:52 -07:00
Ben Bader d022622a99
Upgrade kotlinpoet from 1.0.0-RC1 to 1.5.0 (#334) 2020-05-13 21:59:00 -07:00
Ben Bader 14607e5dd5
Use openjdk instead of oracle jdk (#321)
* Use openjdk instead of oracle jdk

* Don't force Java 8 compatibility in the compiler

* Remove generated annotations from apache thrift classes

* Remove ErrorProne
2019-11-07 15:39:19 -08:00
Ben Bader 964340a7d0
Bump to Gradle 5.4 (#309) 2019-04-19 22:46:21 -07:00
Ben Bader 517f41bc6e
Remove jcenter repository (#270) 2018-11-26 20:51:00 -06:00
Ben Bader 6bccecefc0
Adopt mockito-kotlin, thereby getting mockito 2 (#269) 2018-11-26 20:43:39 -06:00
Ben Bader 6dfe25f299
Bump shadow plugin to remove Gradle warning (#261)
Version 2.x of the shadow plugin had an initialization bug causing warnings about use of deprecated Gradle features; the workaround was to specify `mainClassName` _prior_ to applying the plugin.  Happily, the 4.x release of the plugin fixes the bug.
2018-11-05 09:33:56 -08:00
Ben Bader 78f0a79430
Bump errorprone, only use it on Java modules (#255) 2018-10-30 11:04:21 -07:00
Ben Bader 4490117b05
Update to Kotlin 1.3 (#254) 2018-10-30 10:41:04 -07:00
Christoph Loy df77d08c83 Add newer implementation of gradle-wrapper (#252) 2018-10-10 11:27:27 -07:00
Christoph Loy d19d043aa0 Update Kotlin to 1.2.71 (#251)
Updating kotlin for better performance and fixes!

See [this](https://blog.jetbrains.com/kotlin/2018/09/kotlin-1-2-70-is-out/)
2018-10-09 11:29:14 -07:00
Ben Bader 6d00657a7c
Add lots more documentation (#222) 2018-08-13 12:55:32 -07:00
Ben Bader c3686b52f8
Change command-line flags (#212)
Instead of `--emit-kotlin`, we're adding a `--lang` option defaulting to Java. Instead of `--use-java-style-names`, we're adding `--name-style` defaulting to, well, "default", but that can also be "java" (or potentially other styles as well).

This change also attempts to infer language if it is unspecified - in this case, if `--kt-file-per-type` is specified, but `--lang` is not, we assume that `--lang=kotlin` was intended.

Fixes #209

#209 envisioned a bigger revamp of the CLI, but on further thought we don't need to go to such lengths. Just providing options (instead of boolean flags) for a few params and introducing `--lang` are enough to keep the CLI reasonable.
2018-08-06 11:46:27 -07:00
Ben Bader 3db9d1e2e5
Update clikt, remove custom java.nio.Path integration (#207) 2018-08-05 18:35:59 -07:00
Ben Bader 32fa3ac5de
CLI rework, kotlin codegen bugfix, build ordering bugfix (#187) 2018-07-30 21:30:52 -07:00
Ben Bader 75067bcbcf
Kotlin codegen (#183) 2018-07-29 20:42:37 -07:00
Ben Bader 7eb82dd759
Port non-ThriftType schema types to Kotlin (#179)
Linker, Schema, Loader, Program, and friends are herein converted to Kotlin. A few methods that should by rights be internal are left public here due to the fact that Java unit-tests cannot see the internal members, even though they are part of the same "module". We'll hide them again once the ThriftType family is also ported.

ThriftType and descendants are tightly intertwined, and it will be tricky to disentangle them. I'm vaguely hopeful that a sealed-class hierarchy will fall out of the mess, but the way forward is still unclear.

Finally, there are a plethora of @JvmName annotations on properties here, to avoid too many spurious changes in unrelated files. We'll get rid of them all after ThriftType is in kt.
2018-07-18 14:59:48 -07:00
Ben Bader 7dd5f8f77e
Convert thrift parser to Kotlin (#175) 2018-06-10 16:16:06 -07:00
Ben Bader 6d8187bd36
Convert thrifty-java-codegen to Kotlin (#173)
As part of the prep work for implementing Kotlin codegen, we're converting the compiler to Kotlin. This is the first portion to be converted; thrifty-schema is next, in stages.
2018-06-03 22:38:48 -07:00
Ben Bader e1b1f702e0
Update dependencies (#171)
AutoValue and tbroyer's apt plugin necessitate slightly more involved changes. AutoValue in particular is now two separate artifacts (yay!), so we don't have to include repackaged guava in the runtime classpath anymore. Its builders have changed a bit, but as it turns out our code that used the changed bits was dead code. Baleeted.

I've changed the autovalue-annotations from `compileOnly` to `api` because it turns out that the annotations have class retention, so these annotations are therefore actually part of our API.
2018-05-31 19:26:27 -07:00
Ben Bader 8981ddc782
Add test for circular field refs, update copyright, and fix build warnings (#169) 2018-05-31 18:40:32 -07:00
Jared Burrows b6f64bdc28 Update Gradle to 4.3.1 (#157)
update gradle to 4.3.1
2017-11-25 14:10:58 -06:00
Ben Bader 03c5e7b098 Apply codecov.io configuration (#134) 2017-03-09 14:21:28 -08:00
Ben Bader e6f1cb7298 Add JaCoCo report generation (#127) 2017-03-08 13:29:16 -08:00
Ben Bader 6147f4a184 Add ErrorProne checks, fix resulting issues. (#124)
Also, remove long-ignored dead tests.  Dead code is worse than no code.
2017-03-05 00:28:54 -08:00
Ben Bader 13c0b8eed8 Use 'java-library' plugin instead of 'java' (#121)
This paves the way for Java 9 compatibility, and removes some
implementation details from consumers' compile-time classpaths.  This
may break said consumers.
2017-03-02 16:43:43 -08:00
Ben Bader fbfdbd383b Update to Gradle 3.4 (#117) 2017-02-22 22:16:56 -08:00
Ben Bader 028f85f0d5 Target Java 8 for compiler, keep 7 for runtime (#110)
* Target Java 8 for compiler, keep 7 for runtime

* Use Oracle JDK 8 for Travis builds

* Ensure JDK 8 is up-to-date in Travis builds
2017-02-20 18:20:22 -08:00
Ben Bader 67ba3b4b30 Rewrite parser with ANTLR (#104)
Time for another Very Large Change! Here, finally, is the end of the old hand-rolled parser - and, hopefully, the end of fiddly little bugs around trailing-doc comment parsing.

This change should be nearly transparent to consumers; the only visible difference is in parser error reporting. Previously, we would just throw an exception at the first encountered error. We still throw an exception, but now gather all encountered errors into a message.

This is in anticipation of refactoring error reporting a bit; for now, I'd prefer to keep a stable API.

In the process of implementing this, I upgraded AutoValue and finally got tired of the Gradle plugin we were using - I've replaced it with tbroyer's apt plugin, which is comparatively well-behaved.

Fixes #30.
2017-02-18 14:24:18 -08:00
Ben Bader b619f794b1 Upgrade JavaPoet to 1.8.0 (#90) 2017-02-07 14:55:02 -08:00
Ben Bader 95ff208f96 Upgrade Okio to 1.11.0 (#88) 2017-02-07 14:44:52 -08:00
Ben Bader ed4cfbc467 Add type-element annotations to Typedef (#43) 2016-07-20 11:25:54 -07:00
Ben Bader 3cc350ba63 Add SimpleJsonProtocol 2016-03-25 17:03:42 -07:00
Ben Bader c5af0091fb Assign copyright to Microsoft, conform with MS OSS requirements 2016-02-22 17:19:38 -08:00
Ben Bader 41804d186c Update license headers for 2016 2016-01-22 17:58:18 -08:00
Ben Bader af29965b73 More verbose test failures 2016-01-05 14:23:40 -08:00
Ben Bader d2b769a7ae Configure Gradle test output, misc documentation/debugging fixes 2016-01-05 14:19:45 -08:00
Ben Bader acc6faaace License headers 2015-12-22 12:46:23 -08:00
Ben Bader 60b3c116c4 Gradle Plugin progress; Snapshot deployment working
build.gradle files get a nice refactor, too.
2015-11-23 19:24:57 -08:00
Ben Bader 33f3500ecd Findbugs interferes with the AutoValue plugin; remove it for now 2015-11-21 23:37:42 -08:00
Ben Bader 690e84c10a Checkstyle fixes for thrifty-schema 2015-11-21 23:21:13 -08:00