Java Code Examples for org.gradle.api.Project#getConvention()
The following examples show how to use
org.gradle.api.Project#getConvention() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JettyPlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void apply(Project project) { project.getPlugins().apply(WarPlugin.class); JettyPluginConvention jettyConvention = new JettyPluginConvention(); Convention convention = project.getConvention(); convention.getPlugins().put("jetty", jettyConvention); configureMappingRules(project, jettyConvention); configureJettyRun(project); configureJettyRunWar(project); configureJettyStop(project, jettyConvention); }
Example 2
Source File: JettyPlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void apply(Project project) { project.getPlugins().apply(WarPlugin.class); JettyPluginConvention jettyConvention = new JettyPluginConvention(); Convention convention = project.getConvention(); convention.getPlugins().put("jetty", jettyConvention); configureMappingRules(project, jettyConvention); configureJettyRun(project); configureJettyRunWar(project); configureJettyStop(project, jettyConvention); }
Example 3
Source File: QuarkusGradleUtils.java From quarkus with Apache License 2.0 | 5 votes |
public static SourceSet getSourceSet(Project project, String sourceSetName) { final Convention convention = project.getConvention(); JavaPluginConvention javaConvention = convention.findPlugin(JavaPluginConvention.class); if (javaConvention == null) { throw new IllegalArgumentException("The project does not include the Java plugin"); } return javaConvention.getSourceSets().getByName(sourceSetName); }
Example 4
Source File: JettyPlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void apply(Project project) { project.getPlugins().apply(WarPlugin.class); JettyPluginConvention jettyConvention = new JettyPluginConvention(); Convention convention = project.getConvention(); convention.getPlugins().put("jetty", jettyConvention); configureMappingRules(project, jettyConvention); configureJettyRun(project); configureJettyRunWar(project); configureJettyStop(project, jettyConvention); }
Example 5
Source File: JettyPlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void apply(Project project) { project.getPlugins().apply(WarPlugin.class); JettyPluginConvention jettyConvention = new JettyPluginConvention(); Convention convention = project.getConvention(); convention.getPlugins().put("jetty", jettyConvention); configureMappingRules(project, jettyConvention); configureJettyRun(project); configureJettyRunWar(project); configureJettyStop(project, jettyConvention); }