コード例 #1
0
  private Configuration _addConfigurationSoyCompile(Project project) {
    Configuration configuration =
        GradleUtil.addConfiguration(project, SOY_COMPILE_CONFIGURATION_NAME);

    configuration.setDescription("Configures additional Soy dependencies.");
    configuration.setVisible(false);

    return configuration;
  }
コード例 #2
0
  protected Configuration addConfigurationBundle(
      Project project, WorkspaceExtension workspaceExtension) {

    Configuration configuration = GradleUtil.addConfiguration(project, BUNDLE_CONFIGURATION_NAME);

    configuration.setDescription("Configures the Liferay bundle to use for your project.");

    GradleUtil.addDependency(
        project,
        BUNDLE_CONFIGURATION_NAME,
        workspaceExtension.getBundleArtifactGroup(),
        workspaceExtension.getBundleArtifactName(),
        workspaceExtension.getBundleArtifactVersion());

    return configuration;
  }
コード例 #3
0
ファイル: SoyPlugin.java プロジェクト: jpince/liferay-portal
  private Configuration _addConfigurationSoy(final Project project) {
    Configuration configuration = GradleUtil.addConfiguration(project, CONFIGURATION_NAME);

    configuration.defaultDependencies(
        new Action<DependencySet>() {

          @Override
          public void execute(DependencySet dependencySet) {
            _addDependenciesSoy(project);
          }
        });

    configuration.setDescription("Configures Closure Templates for this project.");
    configuration.setVisible(false);

    return configuration;
  }