Java Code Examples for org.gradle.tooling.provider.model.ToolingModelBuilderRegistry#register()
The following examples show how to use
org.gradle.tooling.provider.model.ToolingModelBuilderRegistry#register() .
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: ToolingRegistrationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void execute(ProjectInternal project) { ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class); ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class); ProjectTaskLister taskLister = project.getServices().get(ProjectTaskLister.class); GradleProjectBuilder gradleProjectBuilder = new GradleProjectBuilder(); IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder); modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder)); modelBuilderRegistry.register(ideaModelBuilder); modelBuilderRegistry.register(gradleProjectBuilder); modelBuilderRegistry.register(new GradleBuildBuilder()); modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder)); modelBuilderRegistry.register(new BuildInvocationsBuilder(taskLister)); modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry)); }
Example 2
Source File: ToolingRegistrationAction.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
public void execute(ProjectInternal project) { ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class); ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class); GradleProjectBuilder gradleProjectBuilder = new GradleProjectBuilder(); IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder); modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder)); modelBuilderRegistry.register(ideaModelBuilder); modelBuilderRegistry.register(gradleProjectBuilder); modelBuilderRegistry.register(new GradleBuildBuilder()); modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder)); modelBuilderRegistry.register(new BuildInvocationsBuilder(gradleProjectBuilder)); modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry)); }
Example 3
Source File: ToolingRegistrationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void execute(ProjectInternal project) { ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class); ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class); ProjectTaskLister taskLister = project.getServices().get(ProjectTaskLister.class); GradleProjectBuilder gradleProjectBuilder = new GradleProjectBuilder(); IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder); modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder)); modelBuilderRegistry.register(ideaModelBuilder); modelBuilderRegistry.register(gradleProjectBuilder); modelBuilderRegistry.register(new GradleBuildBuilder()); modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder)); modelBuilderRegistry.register(new BuildInvocationsBuilder(taskLister)); modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry)); }
Example 4
Source File: ToolingRegistrationAction.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
public void execute(ProjectInternal project) { ToolingModelBuilderRegistry modelBuilderRegistry = project.getServices().get(ToolingModelBuilderRegistry.class); ProjectPublicationRegistry projectPublicationRegistry = project.getServices().get(ProjectPublicationRegistry.class); GradleProjectBuilder gradleProjectBuilder = new GradleProjectBuilder(); IdeaModelBuilder ideaModelBuilder = new IdeaModelBuilder(gradleProjectBuilder); modelBuilderRegistry.register(new EclipseModelBuilder(gradleProjectBuilder)); modelBuilderRegistry.register(ideaModelBuilder); modelBuilderRegistry.register(gradleProjectBuilder); modelBuilderRegistry.register(new GradleBuildBuilder()); modelBuilderRegistry.register(new BasicIdeaModelBuilder(ideaModelBuilder)); modelBuilderRegistry.register(new BuildInvocationsBuilder(gradleProjectBuilder)); modelBuilderRegistry.register(new PublicationsBuilder(projectPublicationRegistry)); }