Interface PbjExtension


public interface PbjExtension
A Gradle extension to pass parameters to the PbjCompilerPlugin.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gradle.api.provider.Property<Boolean>
    An optional boolean that indicates if test classes for protobuf models should be generated, which is true by default.
    org.gradle.api.provider.Property<String>
    An optional suffix to append to Java package names of PBJ-generated classes when the Protobuf model is missing an explicit `pbj.java_package` option and PBJ has to derive the Java package name from the standard `java_package` option or otherwise.
  • Method Details

    • getJavaPackageSuffix

      org.gradle.api.provider.Property<String> getJavaPackageSuffix()
      An optional suffix to append to Java package names of PBJ-generated classes when the Protobuf model is missing an explicit `pbj.java_package` option and PBJ has to derive the Java package name from the standard `java_package` option or otherwise.
      Returns:
      the suffix property
    • getGenerateTestClasses

      org.gradle.api.provider.Property<Boolean> getGenerateTestClasses()
      An optional boolean that indicates if test classes for protobuf models should be generated, which is true by default.
      Returns:
      true if tests should be generated