Open wraschke opened 1 year ago
I can think of a few ways to get around this issue, none of which I think are great options. I'll list them to get some discussion on possible solutions:
com.ibm.ws.springboot.support.version15.test.app
. I think this has really bad negatives - overly complex, requires developers to have tool chains for Java-17 and Java-11.org.springframework.boot' version '1.5.X
to build or somehow hacking the build to make the version 1.5.X plugin work. Both cases risk building an application that is not a good representation of what a customer would build and deploy to Liberty.com.ibm.ws.springboot.support_fat
pull the binary test application JAR from there to package into the FAT.Option 3 side-steps all the issues and likely is the quickest to implement, but leaves us with a test JAR that is not maintained by the OpenLiberty source build.
For completeness, adding a fourth option:
For completeness, adding a fourth option:
- Don't test Liberty with versions of Spring Boot which are no longer commercially supported by Spring (< v2.4). https://spring.io/projects/spring-boot#support
That is more of a POC discussion than a design issue discussion involving breaking zero migration and telling customers that may have a support contract with Pivitol for SpringBoot 1.5 that they can no longer run their applications on Liberty.
Design call:
Decided to pursue option 3: build and publish the test application to artifactory/DHE as a binary pre-req to the Open Liberty. Need to discuss with @fritze2 on the best way to do the build and publish of the artifact. @anjumfatima90 will investigate updating the tests to use the pre-built artifact.
The Spring Boot 1.5.x test app is not compatible with Gradle 7; this is the version we need to upgrade to for building Open Liberty so that we can start implementing Jakarta EE 11 features.
Per https://stackoverflow.com/questions/67466790/org-springframework-boot-configuration-with-name-runtime-not-found and https://docs.spring.io/spring-boot/docs/1.5.x/reference/htmlsingle/#getting-started-system-requirements, Spring Boot 1.5 requires 2.9 and 3.x. Later versions of Gradle are not supported.
Running
./gradlew com.ibm.ws.springboot.support.version15.test.app:compileJava
results in the following error:Obviously, this incompatibility prevents us from upgrading the version of Gradle used to build Open Liberty.