本文整理了Java中org.gradle.api.invocation.Gradle.afterProject()
方法的一些代码示例,展示了Gradle.afterProject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Gradle.afterProject()
方法的具体详情如下:
包路径:org.gradle.api.invocation.Gradle
类名称:Gradle
方法名:afterProject
暂无
代码示例来源:origin: gradle.plugin.com.liferay/gradle-plugins-jsdoc
@Override
public void apply(Project project) {
super.apply(project);
final AppJSDocConfigurationExtension appJSDocConfigurationExtension =
GradleUtil.addExtension(
project, PLUGIN_NAME, AppJSDocConfigurationExtension.class);
final JSDocTask appJSDocTask = _addTaskAppJSDoc(project);
_addTaskJarAppJSDoc(appJSDocTask);
Gradle gradle = project.getGradle();
gradle.afterProject(
new Closure<Void>(project) {
@SuppressWarnings("unused")
public void doCall(Project subproject) {
Set<Project> subprojects =
appJSDocConfigurationExtension.getSubprojects();
PluginContainer pluginContainer = subproject.getPlugins();
if (subprojects.contains(subproject) &&
pluginContainer.hasPlugin(JSDocPlugin.class)) {
_configureTaskAppJSDoc(appJSDocTask, subproject);
}
}
});
}
代码示例来源:origin: gradle.plugin.com.liferay/gradle-plugins-tlddoc-builder
@Override
public void apply(Project project) {
GradleUtil.applyPlugin(project, BasePlugin.class);
final AppTLDDocBuilderExtension appTLDDocBuilderExtension =
GradleUtil.addExtension(
project, PLUGIN_NAME, AppTLDDocBuilderExtension.class);
Configuration tlddocConfiguration =
TLDDocBuilderPlugin.addConfigurationTLDDoc(project);
final Copy copyAppTLDDocResourcesTask = _addTaskCopyAppTLDDocResources(
project);
final TLDDocTask appTLDDocTask = _addTaskAppTLDDoc(
copyAppTLDDocResourcesTask, tlddocConfiguration);
_addTaskJarAppTLDDoc(appTLDDocTask);
Gradle gradle = project.getGradle();
gradle.afterProject(
new Closure<Void>(project) {
@SuppressWarnings("unused")
public void doCall(Project subproject) {
Set<Project> subprojects =
appTLDDocBuilderExtension.getSubprojects();
PluginContainer pluginContainer = subproject.getPlugins();
if (subprojects.contains(subproject) &&
pluginContainer.hasPlugin(TLDDocBuilderPlugin.class)) {
_configureTaskAppTLDDoc(appTLDDocTask, subproject);
_configureTaskCopyAppTLDDocResources(
copyAppTLDDocResourcesTask, subproject);
}
}
});
}
代码示例来源:origin: gradle.plugin.com.liferay/gradle-plugins-app-docker
gradle.afterProject(
new Closure<Void>(project) {
代码示例来源:origin: gradle.plugin.com.liferay/gradle-plugins-app-javadoc-builder
gradle.afterProject(
new Closure<Void>(project) {
内容来源于网络,如有侵权,请联系作者删除!