org.gradle.api.plugins.ObjectConfigurationAction Java Examples
The following examples show how to use
org.gradle.api.plugins.ObjectConfigurationAction.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ShipkitConfigurationPlugin.java From shipkit with MIT License | 6 votes |
private static void loadConfigFromFile(final Project rootProject, File shipkitFile, ShipkitConfiguration conf) { if (!shipkitFile.exists()) { // sets some defaults so that they can't be used to run any task (except for bootstrap ones) // but also configuration doesn't fail when running Shipkit for the first time // and configuration files are not created yet conf.getGitHub().setRepository("unspecified"); conf.getGitHub().setReadOnlyAuthToken("unspecified"); LOG.lifecycle(" Configuration file '{}' does not exist. '{}' task can be used to bootstrap Shipkit.\n" + " Getting Started Guide: https://github.com/mockito/shipkit/blob/master/docs/getting-started.md", shipkitFile.getName(), InitPlugin.INIT_SHIPKIT_TASK); } else { // apply configuration properties from config file rootProject.apply(new Action<ObjectConfigurationAction>() { @Override public void execute(ObjectConfigurationAction action) { action.from(getShipkitFile(rootProject)); } }); } }
Example #2
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final String pluginId) { actions.add(new Runnable() { public void run() { applyPlugin(pluginId); } }); return this; }
Example #3
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final Class<? extends Plugin> pluginClass) { actions.add(new Runnable() { public void run() { applyPlugin(pluginClass); } }); return this; }
Example #4
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction from(final Object script) { actions.add(new Runnable() { public void run() { applyScript(script); } }); return this; }
Example #5
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final String pluginId) { actions.add(new Runnable() { public void run() { applyPlugin(pluginId); } }); return this; }
Example #6
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final Class<? extends Plugin> pluginClass) { actions.add(new Runnable() { public void run() { applyPlugin(pluginClass); } }); return this; }
Example #7
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction from(final Object script) { actions.add(new Runnable() { public void run() { applyScript(script); } }); return this; }
Example #8
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final String pluginId) { actions.add(new Runnable() { public void run() { applyPlugin(pluginId); } }); return this; }
Example #9
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final Class<? extends Plugin> pluginClass) { actions.add(new Runnable() { public void run() { applyPlugin(pluginClass); } }); return this; }
Example #10
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction from(final Object script) { actions.add(new Runnable() { public void run() { applyScript(script); } }); return this; }
Example #11
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final String pluginId) { actions.add(new Runnable() { public void run() { applyPlugin(pluginId); } }); return this; }
Example #12
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction plugin(final Class<? extends Plugin> pluginClass) { actions.add(new Runnable() { public void run() { applyPlugin(pluginClass); } }); return this; }
Example #13
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public ObjectConfigurationAction from(final Object script) { actions.add(new Runnable() { public void run() { applyScript(script); } }); return this; }
Example #14
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example #15
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example #16
Source File: DefaultObjectConfigurationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }
Example #17
Source File: DefaultObjectConfigurationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public ObjectConfigurationAction to(Object... targets) { GUtil.flatten(targets, this.targets); return this; }