inglor commented on PR #13205: URL: https://github.com/apache/kafka/pull/13205#issuecomment-1439265302
> Thanks @dejan2609. I still prefer the path I described here: > > > [gradle/gradle#23962 (comment)](https://github.com/gradle/gradle/issues/23962#issuecomment-1439115365) > > Do you know if that works? Hi @ijuma , just to pitch in that setting `-release` on scala `2.13` is producing same error `[Error] : -target is deprecated: Use -release instead to compile against the correct platform API.` ``` diff --git a/build.gradle b/build.gradle --- a/build.gradle (revision 2e1947d240607d53f071f61c875cfffc3fec47fe) +++ b/build.gradle (date 1677025069098) @@ -684,7 +684,7 @@ } // Scalac's `-release` requires Java 9 or higher - if (JavaVersion.current().isJava9Compatible()) + if (versions.baseScala == '2.13') scalaCompileOptions.additionalParameters += ["-release", minJavaVersion] configure(scalaCompileOptions.forkOptions) { ``` PS: Encountered this error while trying to package `kafka` for Arch Linux which has latest gradle version `8.0.1` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org