linghengqian opened a new issue, #2420:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2420

   ## Feature Request
   
   **For English only**, other languages will not accept.
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot make decision by current information, 
we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Is your feature request related to a problem?
   
   - For #2417 .
   
   ### Describe the feature you would like.
   
   - Bump the minimum compilation JDK version to JDK17, while keeping the 
minimum runtime JDK version at JDK8.
   - Since elasticjob is still compiled with JDK8, it is no longer possible to 
test Spring Boot 3. Refer to the log at 
https://github.com/apache/shardingsphere-elasticjob/actions/runs/10329730069/job/28597983293?pr=2417.
   
   ```shell
   Error:  Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.11.0:testCompile 
(default-testCompile) on project elasticjob-test-native: Compilation failure
   Error:  
/home/runner/work/shardingsphere-elasticjob/shardingsphere-elasticjob/test/native/src/test/java/org/apache/shardingsphere/elasticjob/test/natived/commons/repository/SpringBootFooRepository.java:[21,38]
 cannot access org.springframework.stereotype.Repository
   Error:    bad class file: 
/home/runner/.m2/repository/org/springframework/spring-context/6.1.11/spring-context-6.1.11.jar(org/springframework/stereotype/Repository.class)
   Error:      class file has wrong version 61.0, should be 52.0
   Error:      Please remove or make sure it appears in the correct 
subdirectory of the classpath.
   Error:  -> [Help 1]
   Error:  
   Error:  To see the full stack trace of the errors, re-run Maven with the -e 
switch.
   Error:  Re-run Maven using the -X switch to enable full debug logging.
   Error:  
   Error:  For more information about the errors and possible solutions, please 
read the following articles:
   Error:  [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   Error:  
   Error:  After correcting the problems, you can resume the build with the 
command
   Error:    mvn <args> -rf :elasticjob-test-native
   Error: Process completed with exit code 1.
   ```
   - Doing something like https://github.com/apache/shardingsphere/pull/23550 
is in line with expectations, and similar operations will force elasticjob to 
be built with JDK17, while the final product can still run on JDK8.
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to