Plugin

public final class Plugin implements Plugin<Project>

The ProtoData Gradle plugin.

Adds the launchProtoData task which runs the executable with the arguments assembled from the configuration of this plugin.

The users can submit configuration parameters, such as renderer and plugin class names, etc. via the protoData { } extension.

The users can submit the user classpath to the ProtoData by declaring dependencies using the protoData configuration.

Example:

protoData {
renderers("com.acme.MyRenderer")
plugins("com.acme.MyPlugin")
}

dependencies {
protoData(project(":my-plugin"))
}

Constructors

Link copied to clipboard
public Plugin Plugin()

Functions

Link copied to clipboard
public Unit apply(Project project)
Link copied to clipboard
public final static String readVersion()

Reads the version of the plugin from the resources.