[ 
https://issues.apache.org/jira/browse/CALCITE-5567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17697991#comment-17697991
 ] 

Kevin Risden edited comment on CALCITE-5567 at 3/8/23 4:18 PM:
---------------------------------------------------------------

I'm not sure this is a forbiddensapi issue? Forbiddenapi supports JDK 19 as of 
3.4 
(https://github.com/policeman-tools/forbidden-apis/wiki/Changes#version-34-released-2022-10-02)
 and Calcite 1.33 has Forbiddenapi 3.4 - 
https://github.com/apache/calcite/blob/main/gradle.properties#L53

Gradle is only on 7.4.2 I think (see latest commit here 
https://github.com/apache/calcite/blob/main/gradlew) - and gradle 7.6 is 
required to be able to use JDK 19 - 
https://docs.gradle.org/7.6/release-notes.html


was (Author: risdenk):
I'm not sure this is a forbiddensapi issue? Forbiddenapi supports JDK 19 as of 
3.4 and 1.33 of calcite has Forbiddenapi 3.4 - 
https://github.com/apache/calcite/blob/main/gradle.properties#L53

Gradle is only on 7.4.2 I think (see latest commit here 
https://github.com/apache/calcite/blob/main/gradlew) - and gradle 7.6 is 
required to be able to use JDK 19 - 
https://docs.gradle.org/7.6/release-notes.html

> 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)

Reply via email to