本文整理了Java中org.gradle.api.Project.configure()
方法的一些代码示例,展示了Project.configure()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.configure()
方法的具体详情如下:
包路径:org.gradle.api.Project
类名称:Project
方法名:configure
暂无
代码示例来源:origin: gradle.plugin.com.github.rmee/gcloud
public void gke(Closure<GkeConfiguration> closure) {
project.configure(gke, closure);
}
代码示例来源:origin: gradle.plugin.com.github.rmee/kubernetes
public Client client(Closure closure) {
return (Client) project.configure(client, closure);
}
代码示例来源:origin: gradle.plugin.com.github.rmee/kubectl
public Credentials credentials(Closure closure) {
return (Credentials) project.configure(credentials, closure);
}
代码示例来源:origin: gradle.plugin.de.qaware.cloud.deployer/deployer
/**
* Creates a new kubernetes environment extension.
*
* @param closure The closure which contains the environment configuration.
* @return The new kubernetes environment extension.
*/
public EnvironmentExtension kubernetes(Closure closure) {
EnvironmentExtension config = new EnvironmentExtension(DeployerType.KUBERNETES, project);
config = (EnvironmentExtension) project.configure(config, closure);
configs.add(config);
return config;
}
代码示例来源:origin: gradle.plugin.de.qaware.cloud.deployer/deployer
/**
* Adds a new ssl configuration to this environment.
*
* @param closure The closure which contains the ssl configuration.
* @return The ssl configuration.
*/
public SSLExtension ssl(Closure closure) {
SSLExtension ssl = (SSLExtension) project.configure(new SSLExtension(), closure);
this.sslExtension = ssl;
return ssl;
}
代码示例来源:origin: gradle.plugin.de.qaware.cloud.deployer/deployer
/**
* Adds a new authorization configuration to this environment.
*
* @param closure The closure which contains the authorization configuration.
* @return The authorization configuration.
*/
public AuthExtension auth(Closure closure) {
AuthExtension auth = (AuthExtension) project.configure(new AuthExtension(), closure);
this.authExtension = auth;
return auth;
}
代码示例来源:origin: MinecraftForge/ForgeGradle
@SuppressWarnings("rawtypes")
public void project(String projName, Closure closure)
{
project.configure(projectContainer.maybeCreate(projName), closure);
}
代码示例来源:origin: gradle.plugin.de.qaware.cloud.deployer/deployer
/**
* Creates a new marathon environment extension.
*
* @param closure The closure which contains the environment configuration.
* @return The new marathon environment extension.
*/
public EnvironmentExtension marathon(Closure closure) {
EnvironmentExtension config = new EnvironmentExtension(DeployerType.MARATHON, project);
config = (EnvironmentExtension) project.configure(config, closure);
configs.add(config);
return config;
}
代码示例来源:origin: gradle.plugin.org.itsallcode/openfasttrace-gradle
public void tag(Closure<?> closure)
{
final TagConfig tag = new TagConfig(project);
project.configure(tag, closure);
tagConfigs.add(tag);
}
代码示例来源:origin: gradle.plugin.com.github.kaklakariada.aws/aws-sam-gradle
public void api(Closure<?> config) {
api = (ApiConfigDsl) project.configure(new ApiConfigDsl(), config);
}
}
代码示例来源:origin: typelead/gradle-eta
public void options(Closure configure) {
getProject().configure(etaOptions, configure);
}
代码示例来源:origin: gradle.plugin.com.github.pivotalservices/ya-cf-app-gradle-plugin
public void cfProxySettings(Closure closure) {
this.cfProxySettings = new CfProxySettings();
this.project.configure(cfProxySettings, closure);
}
代码示例来源:origin: gradle.plugin.com.github.pivotalservices/ya-cf-app-gradle-plugin
public void cfService(Closure closure) {
CfService cfService = new CfService();
this.project.configure(cfService, closure);
this.cfServices.add(cfService);
this.services.add(cfService.getInstanceName());
}
代码示例来源:origin: gradle.plugin.org.wildfly.build/wildfly-gradle-tools
public void override(String artifactIdentifier, Closure<ProvisionOverride> closure) {
ProvisionOverride override = new ProvisionOverride( artifactIdentifier );
getProject().configure( override, closure );
overrides.put( artifactIdentifier, override );
}
代码示例来源:origin: gradle.plugin.com.github.pivotalservices/ya-cf-app-gradle-plugin
public void cfUserProvidedService(Closure closure) {
CfUserProvidedService cfUserProvidedService = new CfUserProvidedService();
this.project.configure(cfUserProvidedService, closure);
this.cfUserProvidedServices.add(cfUserProvidedService);
this.services.add(cfUserProvidedService.getInstanceName());
}
代码示例来源:origin: gradle.plugin.com.github.rmee/kubectl
public KubectlExecResult exec(Closure<KubectlExecSpec> closure) {
KubectlExecSpec spec = new KubectlExecSpec();
project.configure(spec, closure);
return exec(spec);
}
}
代码示例来源:origin: gradle.plugin.com.github.rmee/helm
public void exec(Closure<HelmExecSpec> closure) {
HelmExecSpec spec = new HelmExecSpec();
project.configure(spec, closure);
exec(spec);
}
代码示例来源:origin: com.github.rmee/kubectl
public KubectlExecResult exec(Closure<KubectlExecSpec> closure) {
KubectlExecSpec spec = new KubectlExecSpec();
project.configure(spec, closure);
return exec(spec);
}
}
代码示例来源:origin: gradle.plugin.com.github.rmee/oc
public OcExecResult exec(Closure<OcExecSpec> closure) {
OcExecSpec spec = new OcExecSpec();
project.configure(spec, closure);
return exec(spec);
}
}
代码示例来源:origin: gradle.plugin.com.liferay/gradle-plugins-wsdl-builder
public void generateOptions(Closure<?> closure) {
Project project = getProject();
project.configure(getGenerateOptions(), closure);
}
内容来源于网络,如有侵权,请联系作者删除!