org.gradle.api.invocation.Gradle.afterProject()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(217)

本文整理了Java中org.gradle.api.invocation.Gradle.afterProject()方法的一些代码示例,展示了Gradle.afterProject()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Gradle.afterProject()方法的具体详情如下:
包路径:org.gradle.api.invocation.Gradle
类名称:Gradle
方法名:afterProject

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) {

相关文章