-
Notifications
You must be signed in to change notification settings - Fork 15
Modern gradle #596
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
Modern gradle #596
Conversation
Continue treating empty xml elements of the form <element/> as nil valued after upgrade to jackson past 2.12.x.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I'll close my PR so there's no confusion.
import org.hamcrest.Description; | ||
import org.hamcrest.TypeSafeMatcher; | ||
import org.mockito.ArgumentMatcher; | ||
import org.hamcrest.*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid the * import?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep - I caught a few more of them that were added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Travis keeps getting hung up running the test:
I was able to run locally no problem. Travis is running a release of Oracle JDK from 2017 (1.8.0_151), and that might not be playing nice with the latest version of gradle (I'm running Temurin build 1.8.0_332-b09 locally). What I could do is make a new PR against current master to move to github actions for testing, and if that is smooth, then update this PR to use that. That will at least get us a more recent version of JDK 8 to work with. |
Use File.deleteOnExit() instead of FileUtils.deleteDirectory() from commons-io in testThatNamedPipeThrows() tests in FileObjectGetter and FileObjectPutter tests. Not sure why, but after the commons-io upgrade, the calls to FileUtils.deleteDirectory() started to hang.
This PR builds supersedes #595. Starting with the work @scribe did, the new default behavior of jackson xml handling for empty xml elements was reverted to the previous default behavior and the tests passed. From there, more dependencies were updated, and the gradle build was moved from the groovy DSL to the kotlin DSL. Finally, gradle was upgraded from 7.5 to 7.5.1.
This work should result in the same build outputs and behavior as the previous build, with the exclusion of the configuration for artifact publishing, which was still configured to use bintray (will add publishing back in another PR to use GitHub packages).