[
https://issues.apache.org/jira/browse/CALCITE-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde updated CALCITE-5098:
---------------------------------
Description:
Before this change, Avatica used Gradle 6.8.1 and supported Java versions up to
15. After this change Avatica uses Gradle 7.4.2 and supports Java versions up
to 17.
Rationale: Gradle 6 only supports Java versions up to 15. For Java 16 we need
to upgrade to Gradle 7. Java 17 requires Gradle 7.3. (See CALCITE-4829, the
corresponding Calcite issue.)
Gradle 7 removes support for the "testClasses" configuration, so we will need
to remove uses of that, and we need to prevent uses of tests in one module by
tests in another. In Calcite we solved that problem by creating a testkit
module (see CALCITE-4821) but we don't go that far for Avatica. In the [dev
branch|https://github.com/julianhyde/calcite-avatica/tree/5098-gradle-7] you'll
see I created a testkit module but then removed it as overkill.
was:Avatica currently uses Gradle 6.8.1. Migrating Avatica to Gradle 7 is
necessary because Gradle 6 only supports up to JDK 16 (see CALCITE-4547, the
corresponding Calcite issue). But Gradle 7 drops support for the "testRuntime"
configuration, so we will need to remove uses of that first (see CALCITE-4821,
the corresponding Calcite issue).
> Migrate Avatica to Gradle 7.4.2, and support Java 16 and 17
> -----------------------------------------------------------
>
> Key: CALCITE-5098
> URL: https://issues.apache.org/jira/browse/CALCITE-5098
> Project: Calcite
> Issue Type: Bug
> Components: avatica
> Reporter: Julian Hyde
> Assignee: Julian Hyde
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Before this change, Avatica used Gradle 6.8.1 and supported Java versions up
> to 15. After this change Avatica uses Gradle 7.4.2 and supports Java versions
> up to 17.
> Rationale: Gradle 6 only supports Java versions up to 15. For Java 16 we need
> to upgrade to Gradle 7. Java 17 requires Gradle 7.3. (See CALCITE-4829, the
> corresponding Calcite issue.)
> Gradle 7 removes support for the "testClasses" configuration, so we will need
> to remove uses of that, and we need to prevent uses of tests in one module by
> tests in another. In Calcite we solved that problem by creating a testkit
> module (see CALCITE-4821) but we don't go that far for Avatica. In the [dev
> branch|https://github.com/julianhyde/calcite-avatica/tree/5098-gradle-7]
> you'll see I created a testkit module but then removed it as overkill.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)