Class Plugin

  • All Implemented Interfaces:
    org.gradle.api.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"))
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      Plugin()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit apply(Project project)
      final static String readVersion() Reads the version of the plugin from the resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Plugin

        Plugin()
    • Method Detail

      • readVersion

         final static String readVersion()

        Reads the version of the plugin from the resources.