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

32 Коммитов

Автор SHA1 Сообщение Дата
Ben Bader fc3d9881d4
Don't enable Dokka or signing unless publishing (#515) 2022-12-12 20:36:28 -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 1af9585261
Add new configuration for TypeProcessors in thrifty-gradle-plugin (#494) 2022-09-22 15:02:59 -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 cc9fbc0670
Enable TypeProcessors for thrifty-gradle-plugin (#490) 2022-06-07 14:51:04 -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 e38faa544d
Fix various Gradle deprecations around version catalogs (#470) 2022-04-11 17:11:18 -06: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 7bdb221058
Replace subprojects/allprojects with buildSrc and version catalogs (#456) 2021-08-01 21:22:45 -06:00
Ben Bader 2487676ad2
Convert thrifty-gradle-plugin to Java, use Worker API (#455) 2021-07-10 20:53:14 -06:00
Ben Bader 0966b06f28
Change gradle plugin default to Kotlin sources (#442) 2021-02-16 10:24:49 -07:00
Ben Bader 595ba47dcd
Make ThriftyTask abstract for cleaner Gradle API usage (#418) 2020-12-21 12:55:06 -07:00
Ben Bader d333322d78
Switch Kotlin structs to builderless by default (#414) 2020-12-17 23:33:35 -07:00
Ben Bader 372ebd78ad
Remove references to java exceptions in generated Kotlin (#412)
* Remove references to java exceptions in generated Kotlin

* Fix integration tests - wow that setup is terrible
2020-12-17 22:27:26 -07:00
Ben Bader 8bf93eae1f
Remove all support for '@Generated' annotations (#402) 2020-10-02 23:05:36 -06:00
Ben Bader adfd775488
Bump kotlin to 1.4.10 (#400) 2020-09-13 10:01:12 -07:00
Ben Bader c9be396db8
JUnit 4 -> 5 (#396) 2020-08-24 09:16:49 -07:00
Yosuke Hirakida 09f09c9373
Fix documents (#374) 2020-07-27 12:52:54 -07:00
Ben Bader ea47bbaf9e
Try to force the correct ANTLR version in the gradle plugin (#373) 2020-07-14 22:07:13 -07:00
Ben Bader 6b6e60ca68
Rename inputDir to inputPath, customize outputDirectory (#369)
* Rename inputDir to inputPath, customize outputDirectory

* Radically simplify implementation, update README
2020-06-29 16:16:38 -07:00
Ben Bader c0dded35d1
Add API to configure which specific thrift files get compiled (#367)
* Add API to configure which specific thrift files get compiled

* FilteredSourceDirectory -> ThriftSourceDirectory

* Fix include-path dependency registration

* Add test case for include-path

* Defer include-path computation until afterEvaluate

* Clean up and fix a typo
2020-06-18 22:44:18 -07:00
Ben Bader 51997a47c5
Add Gradle Plugin Portal publishing (#366) 2020-06-16 17:32:22 -07:00
Ben Bader 5be243a038
Fix Maven publication (#364) 2020-06-09 10:46:43 -07:00
Ben Bader 8301d617e4
Gradle plugin (#356)
Fixes #323
2020-06-04 23:01:57 -07:00
Ben Bader ad7aecda8e Remove Gradle plugin and touch up README.md 2015-12-22 12:56:06 -08:00
Ben Bader acc6faaace License headers 2015-12-22 12:46:23 -08:00
Ben Bader b4208db2e1 Add more README files 2015-12-19 22:00:41 -08:00
Ben Bader 2a7a61b46b Minor fixes to gradle plugin 2015-12-09 13:25:35 -08:00
Ben Bader 890d5e4688 wip, battery is dying 2015-11-25 20:23:01 -08:00
Ben Bader 346fe012fe Compiler, plugin progress, boilerplate methods, const progress 2015-11-24 17:44:58 -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 9199ba3f0a Great strides 2015-11-09 23:20:51 -08:00