← All tasks
javaapache/shardingsphere-elasticjob #2420Not a task: already works

Bump the minimum compilation JDK version to JDK17, while keeping the minimum runtime JDK version at JDK8

envgap__apache__shardingsphere-elasticjob-2420

01 / FAILURE SIGNATURE

As reported upstream

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
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
08031cd7b47e9cc3b067d2bcf98318335d8cafe5
Manifest
pom.xml
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

apache/shardingsphere-elasticjob #2420 · read the original issue
## 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.

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]