Andrea Di Lisio
10/11/2023, 4:01 PMwiremock-jre8
for integration tests.
I’d like to migrate to wiremock
3.x without losing the ability to release jars which can run on Java8 (We’d also love to drop 1.8 support, but we can’t because some of our customers are still on 1.8).
Is this possible ? I wonder if I can achieve that with the help of task-specific toolchains. Thank you!Oleg Nenashev
10/11/2023, 7:07 PMAndrea Di Lisio
10/12/2023, 2:22 PMtoolchains
directive was causing some extra headaches. I’ve replaced that with:
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
It looks good 👍
Out of curiosity, is there any reason why you would suggest switching to testcontainers as opposed to the above approach ? On this project I’d anyway need to target version 1.8 (either with toolchains
or targetCompatibility
)… So I don’t really care about the extra build.gradle
configOleg Nenashev
10/12/2023, 2:34 PMAndrea Di Lisio
10/13/2023, 7:19 AM