예제 #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
  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;
  }