-
Notifications
You must be signed in to change notification settings - Fork 119
Description
Gradle 6.0 upgrade
Upgrades are necessary, not only to your dependencies but also to the tools that you are using. Gradle 6.0 improves compilation time as improved in Gradle 6 and Gradle 5 and fixes numerous amount of issues alongside other improvements.
Plugin update(s)
In order to make use of the latest features and bug fixes. This change will also include some changes to the versions of Gradle plugins, alongside a fundamental change of the java plugin.
- thrift-gradle-plugin (0.4.0 -> 0.4.1)
- net.minecrell.licenser (0.3 -> 0.4.1)
- com.github.sherter.google-java-format (0.6 -> 0.8)
- net.ltgt.errorprone (0.6 -> 1.1.1)
- java -> java-library
(The new version/plugins have been highlighted in bold and listed in order as listed in the
gradle.buildfile)
Dependency update(s)
Dependencies are the fundamentals of your program, keeping them up to date will give you the ability to profit from the performance improvements, feature changes (both deprecations and new features) and bug fixes. Some dependencies were pretty outdated so they were upgraded to the latest version.
- com.google.errorprone:error_prone_core (2.3.1 -> 2.3.3)
- com.google.code.gson:gson (2.8.5 -> 2.8.6)
- com.uber.m3:tally-core (0.2.3 -> 0.4.0)
- com.google.guava:guava (27.0.1-jre -> 28.1-jre)
- com.cronutils:cron-utils (8.0.0 -> 9.0.0)
(The new version/dependencies have been highlighted in bold and listed in order as listed in the
gradle.buildfile)
Other significant changes:
Other significant changes are listed here, these are changes that do not impact the project and it's source code, but the overall look and feel of the configuration file(s) that have to do with Gradle.
- Cleaned up and reordered the
gradle.buildfile - Added comments to where needed, so that anyone can work with Gradle and understand it's components
- Fixed issue with signing artifacts when using
maven-publish
Notes
There is no need for anyone to install Gradle 6.0, as the Gradle wrapper will automatically be updated to Gradle 6.0. The wrapper will automatically download the executable when the wrapper is called.
OpenJDK Alpine Docker base image
The current base image of the Cadence Java Client is set to the openjdk:8 image which significantly larger compared to its brother openjdk:8-alpine. It takes less time to download the base image and it makes your final image smaller than usual. Here are some results from changing the base image from openjdk:8 -> openjdk:8-alpine:
- Size of the final image reduced from 713MB down to 377MB, that is a reduction total of 336MB!
- The image no longer includes linux-gnu and only has the files necessary to compile (and run) the Java and Thrift source code, this includes the OpenJDK 1.8.0_212 build 25.212-b04 with Runtime Environment IcedTea 3.12.0 (Alpine 8.212.04-r0).