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

637 Коммитов

Автор SHA1 Сообщение Дата
Kirill 5a724f679f
Introducing flag to add a required builder constructor (#398)
* Introducing flags to add a required builder constructor and omit empty builder constructor

* Making sure not to create constructor if it is empty

* Removingy omitBuilderEmptyConstructor

* Adding deprecated annotation when required constructor is present

* Adding extra documentation, simplifying test
2020-08-27 16:06:27 -07:00
Ben Bader 80946e248b
Remove the now-redundant thrifty-runtime-ktx (#397)
* Remove the now-redundant thrifty-runtime-ktx

* Add kotlinx-coroutines-core to thrifty-runtime
2020-08-24 16:04:29 -07:00
Ben Bader c9be396db8
JUnit 4 -> 5 (#396) 2020-08-24 09:16:49 -07:00
Ben Bader ace0fddfb5
Make antlr->kotlin dependency more elegant and efficient (#395) 2020-08-24 00:00:23 -07:00
Ben Bader 8312c92204
Remove Hamcrest from all Kotlin tests (#394) 2020-08-23 23:03:53 -07:00
Ben Bader 25696242cc
Add an API dependency on kotlin-stdlib (#393) 2020-08-23 18:50:00 -07:00
Ben Bader 5a7f320171
Convert thrifty-runtime to kotlin, require Java 8 (#391)
* Convert thrifty-runtime to kotlin, require Java 8

* Remove erroneous nits in KotlinCodeGenerator

* New kt files should end with a newline

* Fix artifacts from Java->Kotlin conversion, use better idioms
2020-08-23 18:43:51 -07:00
Ben Bader 7a7d7aa1bc
Upgrade Hamcrest from 1.3 -> 2.2 (#386) 2020-08-22 18:02:58 -07:00
Ben Bader e7886a6672
Configure jacoco lazily (#384) 2020-08-22 17:17:09 -07:00
Ben Bader d8c89ec9d0
Replace deploy-snapshots.sh with a Gradle task (#383)
Also, fix thrifty-compiler's publications, which seem to have broken with the recent ShadowJar update.
2020-08-22 14:45:40 -07:00
Ben Bader ae31baf36d
Remove most usage of com.google.truth (#382)
* Remove most usage of com.google.truth

* Remove truth entirely
2020-08-22 00:27:59 -07:00
Ben Bader 7ee5ff7993
Bump Javapoet from 1.11.1 to 1.13.0 (#381) 2020-08-21 23:52:37 -07:00
Ben Bader 15cb49f352
Kotlinpoet 1.5.0 -> 1.6.0 (#380) 2020-08-21 22:51:18 -07:00
Ben Bader da9a8fd862
appendln -> appendLine in kotlin 1.4 (#379) 2020-08-21 22:23:59 -07:00
Ben Bader d794fae3ad
Remove all Kotlin uses of mocks in unit tests (#378) 2020-08-21 22:20:59 -07:00
Ben Bader 249c9346bb
Bump Thrifty to kotlin 1.4.0 (#377) 2020-08-21 21:10:06 -07:00
Ben Bader b85b70e679
Bump shadow-jar from 5.2.0 -> 6.0.0 (#376) 2020-08-16 09:31:40 -07:00
Ben Bader 986adaba8f
Bump Gradle to 6.6 (#375) 2020-08-15 23:34:10 -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 9447887e29
Prepare next development version 2020-07-13 14:39:29 -07:00
Ben Bader ff3a44023c
Release version 2.1.1 2020-07-13 14:29:43 -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
Mikhail.S.Denisov dd87b46e72
Fixed infinity loop in FramedTransport.read in case of EOF. (#368)
Co-authored-by: Mihail S. Denisov <mdenisov@ac-sw.com>
2020-06-28 15:14:02 -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 d1ca5cc2d6
Prepare next development version 2020-06-09 11:16:29 -07:00
Ben Bader f88b7bfdd7
Release version 2.1.0 2020-06-09 10:47:31 -07:00
Ben Bader 5be243a038
Fix Maven publication (#364) 2020-06-09 10:46:43 -07:00
Alexey Morozov c46aeac08f
Explicitly call fail() on a failed request when an exception occurs (#362)
If an exception occurs when performing a client request (i.e. an
IOException or a RuntimeException) then the request never completes,
even with a fail.

This happens because these types of exceptions are handled differently
in `AsyncClientBase.invokeRequest()` than other types, and the
exception is re-thrown without `fail`-ing the request leaving
client code hung.

This patch fixes the problem #358.

Signed-off-by: Alexey Morozov <morozov@gmail.com>
2020-06-05 01:14:37 -07:00
Ben Bader 8301d617e4
Gradle plugin (#356)
Fixes #323
2020-06-04 23:01:57 -07:00
guptadeepanshu 01f5b46e45
Yet another non-breaking space fix (#361) 2020-06-04 14:00:34 -07:00
guptadeepanshu 9e4361b238
Fix null check in reading enum values (#360)
Bug was introduced in PR #357. `.let` does nothing. It should be `?.let`
2020-06-04 14:00:01 -07:00
guptadeepanshu a7aa99d6f9
Use non-breaking space to ensure valid code (#359) 2020-06-04 12:40:20 -07:00
guptadeepanshu 4c4cee6d47
Add option to not throw on unknown enum values (#357)
Add option to not throw on unknown enum values

Fixes #320
2020-06-03 09:09:37 -07:00
Ben Bader 5a7b8606c3
Bump okio from 1.14.1 to 2.6.0 (#348) 2020-05-19 21:19:35 -07:00
Ben Bader cf71b81d70
Only upload snapshots built with JDK 8 (#355) 2020-05-16 23:06:24 -07:00
Ben Bader c8c6297a2e
Update encrypted sonatype credentials 2020-05-16 22:50:20 -07:00
Ben Bader 492ae9565d
Remove redundant, obsolete, etc configuration from build.gradle files (#354) 2020-05-16 22:39:40 -07:00
Ben Bader 4f5df92911
Apply checkstyle only to thrifty-runtime (#353)
This is our last important Java module.  There's no point to applying checkstyle to any other module in our project - it only burns CPU and causes problems.
2020-05-16 22:24:45 -07:00
Ben Bader 7f174572b4
Bump kotlin coroutines from 1.0.0 -> 1.3.6 (#352) 2020-05-16 21:47:08 -07:00
Ben Bader 80fede4f81
Bump antlr from 4.7.1 -> 4.8-1 (#351) 2020-05-16 21:25:44 -07:00
Ben Bader 93bb8a2912
Remove unused findbugs dependency (#350) 2020-05-16 21:19:47 -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 dce47de9f2
Reduce use of afterEvaluate in thrifty-compiler/build.gradle (#344) 2020-05-15 10:36:48 -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