Skip to content

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

Merged
merged 10 commits into from
Aug 19, 2022
Merged

Modern gradle #596

merged 10 commits into from
Aug 19, 2022

Conversation

lesserwhirls
Copy link
Contributor

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).

Copy link
Contributor

@scribe scribe left a 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.*;

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@scribe scribe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lesserwhirls
Copy link
Contributor Author

Travis keeps getting hung up running the test:

>80% EXECUTING [47s]> :ds3-sdk:test
>Executing test com.spectralogic.ds3client.helpers.FileObjectG
> :ds3-sdk:test
> 155 tests completed, 2 skipped<==========---
> 80% EXECUTING [48s]<==========---

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.

scribe and others added 2 commits August 19, 2022 14:33
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.
@lesserwhirls lesserwhirls marked this pull request as ready for review August 19, 2022 23:03
@lesserwhirls lesserwhirls merged commit 92040d5 into SpectraLogic:master Aug 19, 2022
@lesserwhirls lesserwhirls deleted the ModernGradle branch August 19, 2022 23:09
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