[
https://issues.apache.org/jira/browse/CALCITE-5567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17699370#comment-17699370
]
Sergey Nuyanzin commented on CALCITE-5567:
------------------------------------------
Here it is a PR https://github.com/apache/calcite/pull/3007
There was an issue with {{./gradlew javadocAggregate}}. Now seems I was able to
solve it.
Would be great if someone can have a look and I guess we can merge it after
release 1.34.0.
By the way besides gradle version there is another jdk-19 related issue.
In JDK 19 constructors for {{java.util.Locale}} are deprecated in favor of
{{java.util.Locale#of}} methods.
Since by default the build is started with {{-Xlint:deprecation}} flag it will
fail.
I guess need to disable {{-Xlint:deprecation}} for JDKs >= 19
> Failed to apply plugin 'de.thetaphi.forbiddenapis' when running ./gradlew
> build w/ java19
> -----------------------------------------------------------------------------------------
>
> Key: CALCITE-5567
> URL: https://issues.apache.org/jira/browse/CALCITE-5567
> Project: Calcite
> Issue Type: Bug
> Affects Versions: 1.33.0
> Environment: {{OS: arch linux}}
> {{JDK: java-19-openjdk}}
> Reporter: Matt P
> Priority: Major
> Attachments: build.gradle.kts, output.txt
>
>
> Running {{./gradlew build}} on a fresh {{git clone}} fails with:
> {code:java}
> FAILURE: Build failed with an exception.
> * Where:
> Build file '/home/user/github/apache/calcite/build.gradle.kts' line: 513
> * What went wrong:
> Failed to apply plugin 'de.thetaphi.forbiddenapis'.
> > Could not create plugin of type 'ForbiddenApisPlugin'.
> > Could not initialize class
> de.thetaphi.forbiddenapis.gradle.ForbiddenApisPlugin
> {code}
> The full output (output.txt) and {{build.gradle.kts}} files are attached.
> This is similar to https://issues.apache.org/jira/browse/SOLR-14426 but
> running {{./gradlew clean}} results in the same error.
> I've tried this on version 1.33 plus several older releases with similar
> results.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)