apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
3.11k stars 248 forks source link

build(kotlin): Add spotless ktfmt and enable explicit api mode for library code. #1912

Closed wywen closed 3 weeks ago

wywen commented 3 weeks ago

What does this PR do?

This PR modifies the build to: 1) add ktfmt - Since the fury java uses GOOGLE style, the fury kotlin will also use GOOGLE style. The version of ktfmt used is the highest compatible with the spotless maven plugin. 2) explicit api mode 3) parameterized kotlin version in pom.xml so it is easy to change in future 4) Update README.md with build, format and testing instructions.

Related issues

1896

Does this PR introduce any user-facing change?

None.

Benchmark

N/A