org.gradle.api.plugins.WarPluginConvention Java Examples
The following examples show how to use
org.gradle.api.plugins.WarPluginConvention.
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: JSassWarPlugin.java From gradle-plugins with MIT License | 6 votes |
@Override public void apply(Project project) { project.getPlugins().apply(JSassWebjarsPlugin.class); project.getPlugins().apply(WarPlugin.class); TaskProvider<SassCompile> sassCompileTaskProvider = project.getTasks().register("compileWebappSass", SassCompile.class, compileWebappSass -> { compileWebappSass.setGroup(BasePlugin.BUILD_GROUP); compileWebappSass.setDescription("Compile sass and scss files for the webapp"); WarPluginConvention warPluginConvention = project.getConvention().getPlugin(WarPluginConvention.class); compileWebappSass.source(warPluginConvention.getWebAppDir()); compileWebappSass.getDestinationDir().set(new File(project.getBuildDir(), "jsass/webapp")); }); project.getTasks().named(WarPlugin.WAR_TASK_NAME, War.class) .configure(war -> war.from(sassCompileTaskProvider)); }
Example #2
Source File: JSassWarPlugin.java From gradle-plugins with MIT License | 6 votes |
@Override public void apply(Project project) { project.getPlugins().apply(JSassWebjarsPlugin.class); project.getPlugins().apply(WarPlugin.class); TaskProvider<SassCompile> sassCompileTaskProvider = project.getTasks().register("compileWebappSass", SassCompile.class, compileWebappSass -> { compileWebappSass.setGroup(BasePlugin.BUILD_GROUP); compileWebappSass.setDescription("Compile sass and scss files for the webapp"); WarPluginConvention warPluginConvention = project.getConvention().getPlugin(WarPluginConvention.class); compileWebappSass.source(warPluginConvention.getWebAppDir()); compileWebappSass.getDestinationDir().set(new File(project.getBuildDir(), "jsass/webapp")); }); project.getTasks().named(WarPlugin.WAR_TASK_NAME, War.class) .configure(war -> war.from(sassCompileTaskProvider)); }
Example #3
Source File: JettyPlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public WarPluginConvention getWarConvention(Project project) { return project.getConvention().getPlugin(WarPluginConvention.class); }
Example #4
Source File: JettyPlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
public WarPluginConvention getWarConvention(Project project) { return project.getConvention().getPlugin(WarPluginConvention.class); }
Example #5
Source File: JettyPlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public WarPluginConvention getWarConvention(Project project) { return project.getConvention().getPlugin(WarPluginConvention.class); }
Example #6
Source File: JettyPlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
public WarPluginConvention getWarConvention(Project project) { return project.getConvention().getPlugin(WarPluginConvention.class); }