All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.prezi.pride.projectmodel.PrideModelPlugin Maven / Gradle / Ivy

There is a newer version: 0.12.3
Show newest version
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());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy