iamsanjay commented on PR #2682:
URL: https://github.com/apache/solr/pull/2682#issuecomment-2401535692

   Looks like below config is working. It sets solrj and related projects to 
Jdk17 and rest of the projects to Jdk21 for main. And, for all the test 
packages they are using Jdk21.
   
   **javac.gradle**
    ```
        // Use 'release' flag instead of 'source' and 'target'
         tasks.withType(JavaCompile) {
           compileTestJava {
             options.compilerArgs += ["--release", 
JavaVersion.toVersion(scriptDepVersions['min-java-version']).toString()]
           }
           compileJava {
             options.compilerArgs += ["--release", 
project.minJavaVersion.toString()]
           }
         }
   ```
   
   Now, to test it. I unpack the builds and verify it in MANIFEST.MF. 
   
   **solrj**
   ```
   Specification-Title: Apache Solr Search Server: solrj
   X-Compile-Source-JDK: 17
   X-Compile-Target-JDK: 17
   X-Build-JDK: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
   X-Build-OS: Mac OS X aarch64 14.3
   ```
   
   **api**
   ```
   Specification-Title: Apache Solr Search Server: api
   X-Compile-Source-JDK: 17
   X-Compile-Target-JDK: 17
   X-Build-JDK: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
   X-Build-OS: Mac OS X aarch64 14.3
   ```
   **solr-zookeeper**
   ```
   Specification-Title: Apache Solr Search Server: solrj-zookeeper
   X-Compile-Source-JDK: 17
   X-Compile-Target-JDK: 17
   X-Build-JDK: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
   X-Build-OS: Mac OS X aarch64 14.3
   ```
   
   **solrj-streaming**
   ```
   Specification-Title: Apache Solr Search Server: solrj-streaming
   X-Compile-Source-JDK: 17
   X-Compile-Target-JDK: 17
   X-Build-JDK: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
   X-Build-OS: Mac OS X aarch64 14.3
   ```
   
   **core**
   ```
   Specification-Title: Apache Solr Search Server: core
   X-Compile-Source-JDK: 21
   X-Compile-Target-JDK: 21
   X-Build-JDK: 21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
   X-Build-OS: Mac OS X aarch64 14.3
   ```
   
   But I would really appreciate If someone else test it and check If we able 
to achieve the different version for solr (Jdk21) and solrj(jdk17).
   


-- 
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: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to