Repository navigation
AVRO-3120: Support Next Java LTS (Java 17) - #1454
Conversation
Disable Spotless' removeUnusedImports (diffplug/spotless#834). It will be re-enabled once Avro is updated to JDK 11+. Then we can add .mvn/jvm.config (see diffplug/spotless#834 (comment)) Replace Easymock with Mockito. Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
| </eclipse> | ||
| <removeUnusedImports/> | ||
| <!-- Temporarily disabled for JDK 16+ builds --> | ||
| <!--<removeUnusedImports/>--> |
There was a problem hiding this comment.
I hope we can leave with this being disabled until we update Avro to JDK 11. Then we can add the needed --add-exports ... for Spotless Maven plugin in .mvn/jvm.config
…rts JDK 8 Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
|
This PR changed only test related code, so I don't see a reason to backport it to branch-1.11 |
|
Nice, well done @martin-g ! I wonder if we can argueable say then that Avro 1.11.0 was already Java 17 compatible, we were just not testing it :) |
|
Right! It looks safe to say this! :-) But don't mention JDK 18/19 EAs yet! |
|
I think we should cherry pick it, for 1.11.1 because it is safe enough, and also to avoid eventual cherry pick conflicts. WDYT? Would you mind to open a cherry pick PR? |
|
Do we need a PR for cherry-picks ? I'd just cherry-pick it and update |
|
About JDK 18+: #1459 |
* AVRO-3120: Support Next Java LTS (Java 17) Disable Spotless' removeUnusedImports (diffplug/spotless#834). It will be re-enabled once Avro is updated to JDK 11+. Then we can add .mvn/jvm.config (see diffplug/spotless#834 (comment)) Replace Easymock with Mockito. Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Downgrade eclipse-java-formatter to the version that supports JDK 8 Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Fix formatting for Spotless Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Add JDK 17 for the interop tests Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Install JDK 17 in the Docker image Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> (cherry picked from commit 3a8423f)
|
Cherry-picked the changes to |
Hey -- I would only create a PR for a cherry-pick if there was a good reason (an unexpected merge-conflict, a potential break or doubt, or anything that might need extra eyes). Thanks for this update! |
* AVRO-3120: Support Next Java LTS (Java 17) Disable Spotless' removeUnusedImports (diffplug/spotless#834). It will be re-enabled once Avro is updated to JDK 11+. Then we can add .mvn/jvm.config (see diffplug/spotless#834 (comment)) Replace Easymock with Mockito. Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Downgrade eclipse-java-formatter to the version that supports JDK 8 Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Fix formatting for Spotless Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Add JDK 17 for the interop tests Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org> * AVRO-3120: Install JDK 17 in the Docker image Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
Disable Spotless' removeUnusedImports
(google-java-format (and removeUnusedImports) broken on JDK 16+ (has workaround) diffplug/spotless#834). It will be re-enabled
once Avro is updated to JDK 11+. Then we can add .mvn/jvm.config (see
google-java-format (and removeUnusedImports) broken on JDK 16+ (has workaround) diffplug/spotless#834 (comment))
Replace Easymock with Mockito.
Jira
Tests
Commits
Documentation