Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Fix deprecation warning "The DefaultSourceDirectorySet constructor has been deprecated" #53

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

robinverduijn
Copy link

Fix deprecation warning The DefaultSourceDirectorySet constructor has been deprecated.

  • Fixed by using the ObjectFactory service to create the source directory set

This fixes the following deprecation warning seen in any projects that apply the gradle-css-plugin:

The DefaultSourceDirectorySet constructor has been deprecated.
This is scheduled to be removed in Gradle 6.0.
Please use the ObjectFactory service to create instances of SourceDirectorySet instead.

There is an additional Gradle deprecation warning in this project, but that already has a PR open for it at #52 so I am not duplicating those changes here.

@robinverduijn robinverduijn force-pushed the bugfix/deprecated-DefaultSourceDirectorySet-constructor branch from ce52205 to 1e975be Compare May 31, 2019 21:24
@edgargs
Copy link

edgargs commented Jun 25, 2019

@eriwen This is a import fix.

616slayer616 and others added 3 commits October 6, 2019 11:57
resolve only resolvable configurations

eriwen/gradle-js-plugin@d2e7e3b
…s been deprecated`.

- Fixed by using the ObjectFactory service to create the source directory set

This fixes the following deprecation warning seen in any projects that apply the gradle-css-plugin:

```
The DefaultSourceDirectorySet constructor has been deprecated.
This is scheduled to be removed in Gradle 6.0.
Please use the ObjectFactory service to create instances of SourceDirectorySet instead.
```
@robinverduijn robinverduijn force-pushed the bugfix/deprecated-DefaultSourceDirectorySet-constructor branch from 1e975be to a52f13f Compare October 6, 2019 19:01
@robinverduijn
Copy link
Author

robinverduijn commented Oct 6, 2019

I only fixed the other remaining deprecation warning, but you would also need to get the fixes from an as-yet-unmerged pull request at eriwen#52 to be completely warning-free, I think.

It looks like by now, the changes from #52 should no longer be necessary as 9fe88d7 has dropped that class entirely. I have rebased my branch to pull in the latest master and I think these are now the only remaining changes needed to fix the warnings seen under the latest Gradle versions.

I also pushed a change to fix the Travis CI build by updating the build container to oraclejdk11.

@robinverduijn robinverduijn force-pushed the bugfix/deprecated-DefaultSourceDirectorySet-constructor branch from f13e98c to 20b86ae Compare October 7, 2019 18:47
@robinverduijn
Copy link
Author

@eriwen any concerns with this pull request? Could it be merged?

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

Successfully merging this pull request may close these issues.

3 participants