-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test build failure #1431
Comments
@jdneo for a look. |
Could you share a sample project? |
@jdneo I don't know if it is related but in my settings file, I have also
|
Hi @sebastieng, Please try to set |
Thanks @jdneo . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I have a java project with gradle build.
I want to build with Java 8. My code used packages removed in java 11, for example javax.xml.bind.JAXBContext
So , in my build.gradle, I have
And I can run gradle tasks build/check/test using the vscode gradle side bar item without issues.
But when I try to launch a test using Test runner, the gradle build fails with "error: package javax.xml.bind does not exist"
So it seems to build with Java 11!
So why? Does test runner uses another gradle version (where java sourceCompatibility/targetCompatibility is not supported)?
Does a workaround exists?
I checked also Command -> Configure java runtime , and I have Java 1.8 configured too.
Environment
The text was updated successfully, but these errors were encountered: