Ben Bader
d0787fe8cc
Update github actions versions ( #509 )
2022-12-08 14:28:51 -07:00
Ben Bader
b54e8ce369
Bump Gradle to 7.6, enable build caching ( #508 )
...
* Bump Gradle to 7.6
* Enable build caching by default, use it in CI but not integration tests
2022-12-08 14:10:42 -07:00
Ben Bader
d595d639bb
Support omit and emit of field default values in struct constants ( #507 )
2022-12-08 13:07:45 -07:00
Ben Bader
86a57f3933
Deduplicate Constant#referencedConstants ( #506 )
2022-12-07 20:25:52 -08:00
Ben Bader
4b3ff0fe73
Fix OS-dependent file-path failure in LoaderTest ( #505 )
...
* Fix OS-dependent file-path failure in LoaderTest
* Test on windows
* typo
2022-12-07 19:36:25 -08:00
Ben Bader
f9c1099d55
Implement Java codegen for struct-valued constants ( #503 )
2022-12-07 17:07:00 -07:00
Ben Bader
141b856f9a
Sort constants in dependency order ( #502 )
2022-12-06 15:25:18 -07:00
Ben Bader
a1dd337926
Test on JDK 8 and 17, Ubuntu only ( #501 )
2022-12-06 15:06:54 -07:00
Ben Bader
aa82c0097a
Add Constant.referencedConstants ( #499 )
2022-12-06 14:57:47 -07:00
Ben Bader
e685215cba
Bump Kotlinpoet to 1.12.0 ( #496 )
2022-12-05 15:48:44 -07:00
Ben Bader
8a2f635b84
Update Kotlin to 1.7.20, bump related libs ( #495 )
2022-12-05 15:26:46 -07:00
Ben Bader
1af9585261
Add new configuration for TypeProcessors in thrifty-gradle-plugin ( #494 )
2022-09-22 15:02:59 -06:00
Ben Bader
cf1ce63586
Bump Gradle to 7.5.1 ( #493 )
2022-09-21 16:03:34 -06:00
Ben Bader
b8199ad37a
Avoid Project#afterEvaluate, add sources on JavaBasePlugin application instead ( #492 )
2022-07-22 15:21:36 -06:00
Ben Bader
68ada3e14a
Prepare next development version
2022-06-07 16:03:38 -06:00
Ben Bader
86e81cc217
Release version 3.1.0-RC02
2022-06-07 15:56:10 -06:00
Ben Bader
cc9fbc0670
Enable TypeProcessors for thrifty-gradle-plugin ( #490 )
2022-06-07 14:51:04 -06:00
microsoft-github-policy-service[bot]
5c047e5205
Microsoft mandatory file ( #487 )
...
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
2022-05-23 17:10:20 -06:00
Sha Sha Chu
c2d854b7e5
Add generated comments to Kotlin files (default true) ( #486 )
...
Will respect the existing `--omit-file-comments` flag
Fixes #485
2022-05-23 15:59:11 -06:00
Ben Bader
96a7179355
Guava 31 Multimaps never return null so we don't need safe calls on them ( #483 )
2022-04-15 22:18:40 -06:00
Ben Bader
6325d9c949
Add kotlin-codegen support for struct-valued constants ( #482 )
2022-04-15 22:08:42 -06:00
Ben Bader
d7d09987f0
Remove deprecated JvmDefault annotations ( #481 )
2022-04-14 19:01:14 -06:00
Ben Bader
9747f7d343
Fix more Kotlin deprecations and warnings ( #480 )
2022-04-14 18:16:27 -06:00
Ben Bader
106a8aafe0
Bump Guava to 31.1-jre ( #478 )
2022-04-14 17:46:30 -06:00
Ben Bader
5f908e53be
Update kotlinpet to 1.11.0, fix tests ( #477 )
2022-04-14 15:38:38 -06:00
Ben Bader
8e00e676f2
Bump junit to 5.8.2 ( #476 )
2022-04-14 15:14:08 -06:00
Ben Bader
335c136331
Bump gradle-plugin-publish to 0.21.0 ( #475 )
2022-04-14 14:53:47 -06:00
Ben Bader
5a8cc27bfa
Bump shadow plugin to 7.1.2 ( #474 )
2022-04-14 13:03:27 -06:00
Ben Bader
949d85ef70
Bump gradle-maven-publish-plugin to 0.19.0 ( #473 )
2022-04-14 12:52:36 -06:00
Ben Bader
6d405e13cb
Prepare next development version
2022-04-13 14:18:17 -07:00
Ben Bader
505bfa19e8
Release version 3.1.0-RC01
2022-04-13 13:50:54 -07:00
janarajan
f534893648
Implement struct valued constant validator for loading schemas ( #467 )
...
* Implement struct valued constant validator for loading schemas
* Address code review comments
Co-authored-by: Rajan Jana <rjana@uber.com>
2022-04-12 18:24:32 -06:00
Ben Bader
86e89af427
Move version catalog into TOML file, put plugins there ( #472 )
2022-04-11 23:29:58 -06:00
Ben Bader
4c569057e6
Fix simple Kotlin deprecations in thrifty-runtime ( #471 )
2022-04-11 21:08:59 -06:00
Ben Bader
e38faa544d
Fix various Gradle deprecations around version catalogs ( #470 )
2022-04-11 17:11:18 -06:00
Ben Bader
4b730c198f
Bump Kotlin to 1.6.20 ( #469 )
2022-04-11 16:53:55 -06:00
Ben Bader
41342bc085
Gradle -> 7.4.2 ( #468 )
2022-04-11 14:37:53 -06:00
Jiayu Liu
c8751a2a03
Update ThriftyCompiler.kt ( #464 )
...
the default lang type is Kotlin not Java
2022-02-01 12:28:28 -07:00
Ben Bader
d940d78efb
Upgrade to kotlin 1.6.10 ( #463 )
2022-01-20 16:52:41 -07:00
Ben Bader
84e37870cb
Bump to Kotlin 1.5.32 ( #462 )
2022-01-18 12:00:33 -07:00
Ben Bader
138c7953c3
Gradle -> 7.3.3 ( #461 )
2022-01-15 15:27:58 -07:00
Lucas Romero
b28da74d6b
Add Server support ( #447 )
...
* Expose synthetic structs for method args and result
* Make ThriftException a Struct
and make kind required (there is an "unknown" type anyways)
* Move type holders to class level in order to allow for methods to write to them
* Add runtime classes for server support
* Add server support
* Update README
* Clear type outputs at the beginning of generate()
in case the generator gets re-used
* clean up imports
* remove @JvmOverloads
* import all the things
* Remove wildcard import
* Use hand-built ClassNames instead of direct type references
in order to try to be as compatible with Kotlin Multiplatform as
possible.
* Generate server-specific interface
in a server-specific namespace instead of reusing the client interface.
This is necessary because we always want to generate a coroutine based interface for the server and never a callback based one.
* Support compilation of multiple FileSpecs as a unit
because now we generate a separate FileSpec for the server that also need the types from the "normal" FileSpec.
* Move server integration test to "normal" task
as it no longer requires the coroutine client flag to be set.
* Add license headers
* Add license to thrift test code
* Fix README
2021-09-21 09:11:09 -06:00
Ben Bader
800fcbb608
Bump Gradle to 7.2 ( #460 )
2021-08-17 15:21:10 -06:00
Ben Bader
e9ec1fb2ce
Prepare next development version
2021-08-07 23:27:36 -06:00
Ben Bader
de139b4e72
Prepare release 3.0.0
2021-08-07 22:47:22 -06:00
Ben Bader
9480996855
Prepare next development version
2021-08-02 17:41:21 -06:00
Ben Bader
b95a10a11e
Prepare release 3.0.0-RC02
2021-08-02 17:32:48 -06:00
Ben Bader
36242b98a9
Include Java sources in license-header validation ( #458 )
2021-08-02 10:53:36 -06:00
Ben Bader
052dfe8e0f
Update gradle wrapper to 7.7.1 ( #457 )
2021-08-01 22:27:00 -06:00
Ben Bader
7bdb221058
Replace subprojects/allprojects with buildSrc and version catalogs ( #456 )
2021-08-01 21:22:45 -06:00