Java Code Examples for org.gradle.api.plugins.ExtensionContainer#add()
The following examples show how to use
org.gradle.api.plugins.ExtensionContainer#add() .
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: ModuleSystemPlugin.java From gradle-modules-plugin with MIT License | 6 votes |
private void configureModularity(Project project, String moduleName) { ExtensionContainer extensions = project.getExtensions(); extensions.add("moduleName", moduleName); extensions.create("patchModules", PatchModuleExtension.class); extensions.create(ModularityExtension.class, "modularity", DefaultModularityExtension.class, project); new CompileTask(project).configureCompileJava(); new CompileModuleInfoTask(project).configureCompileModuleInfoJava(); new MergeClassesTask(project).configureMergeClasses(); new CompileTestTask(project).configureCompileTestJava(); new TestTask(project).configureTestJava(); new RunTask(project).configureRun(); new JavadocTask(project).configureJavaDoc(); ModularJavaExec.configure(project); ModularCreateStartScripts.configure(project); PatchModuleContainer.configure(project); }
Example 2
Source File: ComponentModelBasePlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Mutate void registerPlatformExtension(ExtensionContainer extensions, PlatformContainer platforms) { extensions.add("platforms", platforms); }
Example 3
Source File: NativeComponentModelPlugin.java From pushfish-android with BSD 2-Clause "Simplified" License | 4 votes |
@Mutate public void registerExtensions(ExtensionContainer extensions, BuildTypeContainer buildTypes, FlavorContainer flavors) { extensions.add("buildTypes", buildTypes); extensions.add("flavors", flavors); }
Example 4
Source File: ComponentModelBasePlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
@Mutate void registerPlatformExtension(ExtensionContainer extensions, PlatformContainer platforms) { extensions.add("platforms", platforms); }
Example 5
Source File: NativeComponentModelPlugin.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 4 votes |
@Mutate public void registerExtensions(ExtensionContainer extensions, BuildTypeContainer buildTypes, FlavorContainer flavors) { extensions.add("buildTypes", buildTypes); extensions.add("flavors", flavors); }