-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Replace 'artifacts.clear()' with 'isVisible=false' #625
Replace 'artifacts.clear()' with 'isVisible=false' #625
Conversation
82dc059
to
e511146
Compare
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.
One small requested change, and thank you!
@@ -8,19 +8,14 @@ import org.gradle.api.Project | |||
@Suppress("DEPRECATION") // forUseAtConfigurationTime() | |||
object Flags { | |||
|
|||
internal const val FLAG_CLEAR_ARTIFACTS = "dependency.analysis.clear.artifacts" |
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.
Would you mind leaving these flags here? (removing the methods is fine.) I'm thinking I might like to do a check at some point to let folks know about flags that no longer do anything to help them clean up their builds.
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.
I reverted this line.
e511146
to
cb99410
Compare
You will have to fix the
|
This remove the call to 'configurations["archives"].artifacts.clear()'. It is no longer necessary if we set the 'consumable' configuration to 'isVisible = false'. Which this commit does. With this change, we also remove the FLAG_CLEAR_ARTIFACTS and FLAG_SILENT_WARNINGS as these are no longer needed.
cb99410
to
eeeded0
Compare
Thanks @mvegter I did not see that test. Very good that it exists. Fixed it. |
I also forgot that that test exists! Now I don't need to bother manually testing this :) |
This remove the call to 'configurations["archives"].artifacts.clear()'.
It is no longer necessary if we set the 'consumable' configuration to 'isVisible = false'. Which this commit does.
With this change, we also remove the FLAG_CLEAR_ARTIFACTS and FLAG_SILENT_WARNINGS as these are no longer needed.
Fixes #607