Package io.spine.protodata.gradle.plugin
Class Plugin
-
- All Implemented Interfaces:
-
org.gradle.api.Plugin
public final class Plugin implements Plugin<Project>The ProtoData Gradle plugin.
Adds the
launchProtoDatatask 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
protoDataconfiguration.Example:
protoData { renderers("com.acme.MyRenderer") plugins("com.acme.MyPlugin") } dependencies { protoData(project(":my-plugin")) }
-
-
Constructor Summary
Constructors Constructor Description Plugin()
-
Method Summary
Modifier and Type Method Description Unitapply(Project project)final static StringreadVersion()Reads the version of the plugin from the resources. -
-
Method Detail
-
readVersion
final static String readVersion()
Reads the version of the plugin from the resources.
-
-
-
-