com.prezi.pride.projectmodel.PrideModelPlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-pride-projectmodel-plugin Show documentation
Show all versions of gradle-pride-projectmodel-plugin Show documentation
Pride manages multiple Gradle modules as a single Gradle project
package com.prezi.pride.projectmodel;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.tooling.provider.model.ToolingModelBuilderRegistry;
import javax.inject.Inject;
@SuppressWarnings("UnusedDeclaration")
public class PrideModelPlugin implements Plugin {
private final ToolingModelBuilderRegistry registry;
@SuppressWarnings("UnusedDeclaration")
@Inject
public PrideModelPlugin(ToolingModelBuilderRegistry registry) {
this.registry = registry;
}
@Override
public void apply(Project project) {
// Register a builder for the pride tooling model
registry.register(new PrideProjectModelBuilder());
}
}