Skip to content
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

Make build work with jdk 10 and use autodetection of surefire provider #107

Merged
merged 1 commit into from
Aug 27, 2018

Conversation

h3adache
Copy link
Member

This allows proper detection of junit (so we don't skip junit 4 tests for example) and allows the project to build correctly using jdk 10

@h3adache
Copy link
Member Author

Tested in mybatis-3/migrations/spring-boot-starter only.
If the configs for provider was added for some other project, I can look into it.

@harawata
Copy link
Member

Thank you @h3adache !
I would wait for @hazendaz 's review, but I myself don't see any problem.

@hazendaz
Copy link
Member

hazendaz commented Aug 18, 2018 via email

@hazendaz
Copy link
Member

hazendaz commented Aug 18, 2018 via email

@h3adache
Copy link
Member Author

I'm not sure @hazendaz I don't use Eclipse. It works fine in Intellij and on the cmd line so I'm not sure why it wouldn't work in Eclipse.
These are all related to the surefire plugin, so I'm not sure what your 2nd comment meant.

@harawata
Copy link
Member

According to this SO answer, surefire 2.22.0 does not require those plugin dependencies anymore.
https://stackoverflow.com/a/47158584/1261766

This new setup seems to be working fine with Eclipse 4.8.0 (JUnit picks up 1470 tests (11 skipped, 0 failure)).
There are a few issues with third party libraries when using JDK 10, though.

  • CGLIB issue
  • Embedded Postgresql issue (tests only)

@hazendaz
Copy link
Member

hazendaz commented Aug 19, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants