Search in sources :

Example 1 with JvmApplicationProjectInitDescriptor

use of org.gradle.buildinit.plugins.internal.JvmApplicationProjectInitDescriptor in project gradle by gradle.

the class ProjectLayoutSetupRegistryFactory method createProjectLayoutSetupRegistry.

public ProjectLayoutSetupRegistry createProjectLayoutSetupRegistry() {
    DefaultTemplateLibraryVersionProvider libraryVersionProvider = new DefaultTemplateLibraryVersionProvider();
    TemplateOperationFactory templateOperationBuilder = this.templateOperationBuilder;
    BuildContentGenerator settingsDescriptor = new SimpleGlobalFilesBuildSettingsDescriptor(scriptBuilderFactory, documentationRegistry);
    BuildContentGenerator resourcesGenerator = new ResourceDirsGenerator();
    BuildContentGenerator gitIgnoreGenerator = new GitIgnoreGenerator();
    BuildContentGenerator gitAttributesGenerator = new GitAttributesGenerator();
    List<BuildContentGenerator> jvmProjectGenerators = ImmutableList.of(settingsDescriptor, gitIgnoreGenerator, gitAttributesGenerator, resourcesGenerator);
    List<BuildContentGenerator> commonGenerators = ImmutableList.of(settingsDescriptor, gitIgnoreGenerator, gitAttributesGenerator);
    BuildInitializer basicType = of(new BasicProjectGenerator(scriptBuilderFactory, documentationRegistry), commonGenerators);
    PomProjectInitDescriptor mavenBuildConverter = new PomProjectInitDescriptor(mavenSettingsProvider, documentationRegistry, workerExecutor);
    ProjectLayoutSetupRegistry registry = new ProjectLayoutSetupRegistry(basicType, mavenBuildConverter, templateOperationBuilder);
    registry.add(of(new JvmApplicationProjectInitDescriptor(Description.JAVA, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmLibraryProjectInitDescriptor(Description.JAVA, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmApplicationProjectInitDescriptor(Description.GROOVY, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmLibraryProjectInitDescriptor(Description.GROOVY, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmApplicationProjectInitDescriptor(Description.SCALA, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmLibraryProjectInitDescriptor(Description.SCALA, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmApplicationProjectInitDescriptor(Description.KOTLIN, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new JvmLibraryProjectInitDescriptor(Description.KOTLIN, libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new CppApplicationProjectInitDescriptor(templateOperationBuilder, documentationRegistry), commonGenerators, libraryVersionProvider));
    registry.add(of(new CppLibraryProjectInitDescriptor(templateOperationBuilder, documentationRegistry), commonGenerators, libraryVersionProvider));
    registry.add(of(new JavaGradlePluginProjectInitDescriptor(libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new GroovyGradlePluginProjectInitDescriptor(libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new KotlinGradlePluginProjectInitDescriptor(libraryVersionProvider, documentationRegistry), jvmProjectGenerators, libraryVersionProvider));
    registry.add(of(new SwiftApplicationProjectInitDescriptor(templateOperationBuilder, documentationRegistry), commonGenerators, libraryVersionProvider));
    registry.add(of(new SwiftLibraryProjectInitDescriptor(templateOperationBuilder, documentationRegistry), commonGenerators, libraryVersionProvider));
    return registry;
}
Also used : ProjectLayoutSetupRegistry(org.gradle.buildinit.plugins.internal.ProjectLayoutSetupRegistry) JvmApplicationProjectInitDescriptor(org.gradle.buildinit.plugins.internal.JvmApplicationProjectInitDescriptor) GroovyGradlePluginProjectInitDescriptor(org.gradle.buildinit.plugins.internal.GroovyGradlePluginProjectInitDescriptor) DefaultTemplateLibraryVersionProvider(org.gradle.buildinit.plugins.internal.DefaultTemplateLibraryVersionProvider) PomProjectInitDescriptor(org.gradle.buildinit.plugins.internal.maven.PomProjectInitDescriptor) SwiftApplicationProjectInitDescriptor(org.gradle.buildinit.plugins.internal.SwiftApplicationProjectInitDescriptor) SimpleGlobalFilesBuildSettingsDescriptor(org.gradle.buildinit.plugins.internal.SimpleGlobalFilesBuildSettingsDescriptor) BuildInitializer(org.gradle.buildinit.plugins.internal.BuildInitializer) BasicProjectGenerator(org.gradle.buildinit.plugins.internal.BasicProjectGenerator) SwiftLibraryProjectInitDescriptor(org.gradle.buildinit.plugins.internal.SwiftLibraryProjectInitDescriptor) CppApplicationProjectInitDescriptor(org.gradle.buildinit.plugins.internal.CppApplicationProjectInitDescriptor) CppLibraryProjectInitDescriptor(org.gradle.buildinit.plugins.internal.CppLibraryProjectInitDescriptor) JavaGradlePluginProjectInitDescriptor(org.gradle.buildinit.plugins.internal.JavaGradlePluginProjectInitDescriptor) BuildContentGenerator(org.gradle.buildinit.plugins.internal.BuildContentGenerator) KotlinGradlePluginProjectInitDescriptor(org.gradle.buildinit.plugins.internal.KotlinGradlePluginProjectInitDescriptor) GitAttributesGenerator(org.gradle.buildinit.plugins.internal.GitAttributesGenerator) GitIgnoreGenerator(org.gradle.buildinit.plugins.internal.GitIgnoreGenerator) JvmLibraryProjectInitDescriptor(org.gradle.buildinit.plugins.internal.JvmLibraryProjectInitDescriptor) TemplateOperationFactory(org.gradle.buildinit.plugins.internal.TemplateOperationFactory) ResourceDirsGenerator(org.gradle.buildinit.plugins.internal.ResourceDirsGenerator)

Aggregations

BasicProjectGenerator (org.gradle.buildinit.plugins.internal.BasicProjectGenerator)1 BuildContentGenerator (org.gradle.buildinit.plugins.internal.BuildContentGenerator)1 BuildInitializer (org.gradle.buildinit.plugins.internal.BuildInitializer)1 CppApplicationProjectInitDescriptor (org.gradle.buildinit.plugins.internal.CppApplicationProjectInitDescriptor)1 CppLibraryProjectInitDescriptor (org.gradle.buildinit.plugins.internal.CppLibraryProjectInitDescriptor)1 DefaultTemplateLibraryVersionProvider (org.gradle.buildinit.plugins.internal.DefaultTemplateLibraryVersionProvider)1 GitAttributesGenerator (org.gradle.buildinit.plugins.internal.GitAttributesGenerator)1 GitIgnoreGenerator (org.gradle.buildinit.plugins.internal.GitIgnoreGenerator)1 GroovyGradlePluginProjectInitDescriptor (org.gradle.buildinit.plugins.internal.GroovyGradlePluginProjectInitDescriptor)1 JavaGradlePluginProjectInitDescriptor (org.gradle.buildinit.plugins.internal.JavaGradlePluginProjectInitDescriptor)1 JvmApplicationProjectInitDescriptor (org.gradle.buildinit.plugins.internal.JvmApplicationProjectInitDescriptor)1 JvmLibraryProjectInitDescriptor (org.gradle.buildinit.plugins.internal.JvmLibraryProjectInitDescriptor)1 KotlinGradlePluginProjectInitDescriptor (org.gradle.buildinit.plugins.internal.KotlinGradlePluginProjectInitDescriptor)1 ProjectLayoutSetupRegistry (org.gradle.buildinit.plugins.internal.ProjectLayoutSetupRegistry)1 ResourceDirsGenerator (org.gradle.buildinit.plugins.internal.ResourceDirsGenerator)1 SimpleGlobalFilesBuildSettingsDescriptor (org.gradle.buildinit.plugins.internal.SimpleGlobalFilesBuildSettingsDescriptor)1 SwiftApplicationProjectInitDescriptor (org.gradle.buildinit.plugins.internal.SwiftApplicationProjectInitDescriptor)1 SwiftLibraryProjectInitDescriptor (org.gradle.buildinit.plugins.internal.SwiftLibraryProjectInitDescriptor)1 TemplateOperationFactory (org.gradle.buildinit.plugins.internal.TemplateOperationFactory)1 PomProjectInitDescriptor (org.gradle.buildinit.plugins.internal.maven.PomProjectInitDescriptor)1