-
Notifications
You must be signed in to change notification settings - Fork 40
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
Migrate locks #157
Migrate locks #157
Conversation
@@ -0,0 +1,76 @@ | |||
/** | |||
* | |||
* Copyright 2018 Netflix, Inc. |
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.
not a big deal but this might have to be 2019 :)
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.
Haha, yes! I'll adjust that. Thanks!
List<String> findConfigurationsToLock() { | ||
|
||
def configurationsToLock = new ArrayList<>() | ||
def baseConfigurations = [ |
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.
nice!!
import org.gradle.api.tasks.OutputDirectory | ||
import org.gradle.api.tasks.TaskAction | ||
|
||
class MigrateToCoreLocksTask extends AbstractLockTask { |
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.
This is awesome! thanks for adding a task!
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'm glad for it, too!
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.
This is super cool!
Migrate to core lock format via the new
migrateToCoreLocks
taskThis will lock standard configurations, as well as those from facets such as those created via the
nebula-project-plugin
or others whose family of configuration names contain one withCompileOnly
in the configuration name (smokeTestCompileOnly
, for example)You can also lock all configurations via the property
lockAllConfigurations
if that's what is wanted