@Override public void execute(Configuration files) { files.setVisible(false); files.setTransitive(true); files.setDescription("The Jacoco agent to use to get coverage data."); } });
@Override public void execute(Configuration files) { files.setVisible(false); files.setTransitive(true); files.setDescription( "The Jacoco ant tasks to use to get execute Gradle tasks."); } });
private Configuration _addConfigurationJSCompile(Project project) { Configuration configuration = GradleUtil.addConfiguration( project, JS_COMPILE_CONFIGURATION_NAME); configuration.setDescription( "Configures additional JavaScript dependencies."); configuration.setVisible(false); return configuration; }
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; }
private Configuration _addConfigurationLangBuilder(final Project project) { Configuration configuration = GradleUtil.addConfiguration( project, CONFIGURATION_NAME); configuration.defaultDependencies( new Action<DependencySet>() { @Override public void execute(DependencySet dependencySet) { _addDependenciesLangBuilder(project); } }); configuration.setDescription( "Configures Liferay Lang Builder for this project."); configuration.setVisible(false); return configuration; }
private Configuration _addConfigurationThemeBuilder(final Project project) { Configuration configuration = GradleUtil.addConfiguration( project, THEME_BUILDER_CONFIGURATION_NAME); configuration.defaultDependencies( new Action<DependencySet>() { @Override public void execute(DependencySet dependencySet) { _addDependenciesThemeBuilder(project); } }); configuration.setDescription( "Configures Liferay Portal Tools Theme Builder for this project."); configuration.setVisible(false); return configuration; }
private Configuration _addConfigurationRESTBuilder(final Project project) { Configuration configuration = GradleUtil.addConfiguration( project, CONFIGURATION_NAME); configuration.defaultDependencies( new Action<DependencySet>() { @Override public void execute(DependencySet dependencySet) { _addDependenciesRESTBuilder(project); } }); configuration.setDescription( "Configures Liferay REST Builder for this project."); configuration.setVisible(false); return configuration; }
private void configureSpotBugsConfigurations() { Configuration configuration = project.getConfigurations().create("spotbugsPlugins"); configuration.setVisible(false); configuration.setTransitive(true); configuration.setDescription("The SpotBugs plugins to be used for this project."); }
private void configureSpotBugsConfigurations() { Configuration configuration = project.getConfigurations().create("spotbugsPlugins"); configuration.setVisible(false); configuration.setTransitive(true); configuration.setDescription("The SpotBugs plugins to be used for this project."); }
private Configuration createJavaccConfiguration(Project project) { Configuration configuration = project.getConfigurations().create("javacc"); configuration.setVisible(false); configuration.setTransitive(true); configuration.setDescription("The javacc dependencies to be used."); return configuration; }
@Override public void apply(Project project) { project.getPlugins().apply(JavaPlugin.class); project.getPlugins().apply(MavenPlugin.class); final GwtExtension extension = project.getExtensions() .create(GwtExtension.NAME, GwtExtension.class); ConfigurationContainer configurationContainer = project .getConfigurations(); configurationContainer.create(CONF_GWT_SDK).setVisible(false); configurationContainer.create(CONF_JETTY).setVisible(false); includeSourcesToJar(project); project.afterEvaluate(p -> initDependencies(project, extension)); }
private void configureFindBugsConfigurations() { Configuration configuration = project.getConfigurations().create("findbugsPlugins"); configuration.setVisible(false); configuration.setTransitive(true); configuration.setDescription("The FindBugs plugins to be used for this project."); }
@Override public void apply(Project project) { Configuration configuration = project.getConfigurations().create("hbm2ddlConfig") .setVisible(true) .setDescription("Description"); configuration.defaultDependencies( dependencies -> { dependencies.add(project.getDependencies().create("org.hibernate:hibernate-core:5.2.16.Final")); dependencies.add(project.getDependencies().create("org.springframework.boot:spring-boot:2.0.1.RELEASE")); }); HibernateSchemaExtension hbm2ddl = project.getExtensions().create("hbm2ddl", HibernateSchemaExtension.class, project); project.getTasks().create("generateDiffSchema", HbmDiffTask.class); }
@Override public void apply(Project project) { setGroup(CHECK_DEPENDENCY_VERSIONS_TASK_GROUP); setDescription(CHECK_DEPENDENCY_VERSIONS_TASK_DESCRIPTION); project.getBuildscript().getConfigurations().create(CHECK_BUILDSCRIPT_DEPENDENCY_VERSIONS_CONFIGURATION_NAME) .setVisible(false).setTransitive(false); project.getConfigurations().create(CHECK_PROJECT_DEPENDENCY_VERSIONS_CONFIGURATION_NAME).setVisible(false) .setTransitive(false); }
private Configuration addToolDependency(Project project) { Configuration config = project.getConfigurations().create("susel") .setVisible(false) .setDescription("Process and create metadata for all service providers."); config.defaultDependencies(dependencies -> dependencies.add(project.getDependencies().create("io.github.udaychandra.susel:tool:0.1.2"))); return config; }
private Configuration configureAgentDependencies(Project project, ScottPluginExtension extension) { Configuration agentConf = project.getConfigurations().create(AGENT_CONFIGURATION_NAME); agentConf.setVisible(false); agentConf.setTransitive(true); agentConf.setDescription("The Scott agent to use detailed failure reports and hassle free assertions for Java tests"); agentConf.defaultDependencies(dependencies -> dependencies.add(project.getDependencies().create("hu.advancedweb:scott:" + extension.getToolVersion())) ); return agentConf; }
private Configuration configureAgentDependencies(Project project, ScottPluginExtension extension) { Configuration agentConf = project.getConfigurations().create(AGENT_CONFIGURATION_NAME); agentConf.setVisible(false); agentConf.setTransitive(true); agentConf.setDescription("The Scott agent to use detailed failure reports and hassle free assertions for Java tests"); agentConf.defaultDependencies(dependencies -> dependencies.add(project.getDependencies().create("hu.advancedweb:scott:" + extension.getToolVersion())) ); return agentConf; }
/** * @see me.seeber.gradle.plugin.AbstractProjectConfigPlugin#initialize() */ @Override protected void initialize() { getProject().getPlugins().apply(ProjectConfigPlugin.class); getProject().getPlugins().apply(JavaPlugin.class); getProject().getConfigurations().create("annotate", c -> { c.setDescription("Modules annotated by this project."); c.setVisible(true); c.setTransitive(false); }); } }
/** * @see me.seeber.gradle.plugin.AbstractProjectConfigPlugin#initialize() */ @Override protected void initialize() { getProject().getPlugins().apply(ProjectConfigPlugin.class); getProject().getPlugins().apply(JavaPlugin.class); getProject().getConfigurations().create("annotate", c -> { c.setDescription("Modules annotated by this project."); c.setVisible(true); c.setTransitive(false); }); } }
protected void createConfigurations() { Configuration configuration = project.getConfigurations().create(getConfigurationName()); configuration.setVisible(false); configuration.setTransitive(true); configuration.setDescription("The " + getToolName() + " libraries to be used for this project."); // Don't need these things, they're provided by the runtime configuration.exclude(excludeProperties("ant", "ant")); configuration.exclude(excludeProperties("org.apache.ant", "ant")); configuration.exclude(excludeProperties("org.apache.ant", "ant-launcher")); configuration.exclude(excludeProperties("org.slf4j", "slf4j-api")); configuration.exclude(excludeProperties("org.slf4j", "jcl-over-slf4j")); configuration.exclude(excludeProperties("org.slf4j", "log4j-over-slf4j")); configuration.exclude(excludeProperties("commons-logging", "commons-logging")); configuration.exclude(excludeProperties("log4j", "log4j")); }