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

Kevin Risden commented on SOLR-16432:
-------------------------------------

I checked JDK 19 and seems like need Gradle 7.6 or later?

https://github.com/gradle/gradle/issues/20372

I'm not 100% sure right now. I get the following error w/ my above PR:

{code:java}
./gradlew clean
To honour the JVM settings for this build a single-use Daemon process will be 
forked. See 
https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.
Daemon will be stopped at the end of the build

FAILURE: Build failed with an exception.

* What went wrong:
Could not open cp_settings generic class cache for settings file 
'/Users/risdenk/repos/apache/solr/settings.gradle' 
(/Users/risdenk/.gradle/caches/7.5.1/scripts/evwtt5nt0lw6fqthjunezh9pd).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' 
> Unsupported class file major version 63

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
{code}


> Upgrade the gradle wrapper to 7.5.1
> -----------------------------------
>
>                 Key: SOLR-16432
>                 URL: https://issues.apache.org/jira/browse/SOLR-16432
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Build
>    Affects Versions: 9.1, main (10.0)
>            Reporter: Shawn Heisey
>            Assignee: Kevin Risden
>            Priority: Minor
>         Attachments: solr-upgrade-gradle-7.5.1.patch
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> To upgrade the build system to the latest gradle version, I ran the following 
> command after installing the gradle snap on my system:
> {code:java}
> gradle wrapper --gradle-version 7.5.1{code}
> Then I had to update the version number to 7.5.1 in two files relative to the 
> root of the repo's working dir:
> {code:java}
> gradle/validation/check-environment.gradle
> gradle/wrapper/gradle-wrapper.jar.version{code}
> Doing that resulted in the attached patch.
> I tested with "./gradlew precommit -Pvalidation.git.failOnModified=false" on 
> branch_9x and main with OpenJDK 17 after I did this upgrade.  Both passed.  
> Does it need any more validation before committing to main?  Is it something 
> that should be backported to branch_9x?
> This gradle upgrade gets us Java 18 support, but not Java 19.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to