Class Rife2Extension

java.lang.Object
com.uwyn.rife2.gradle.Rife2Extension

public abstract class Rife2Extension extends Object
The Gradle RIFE2 extension
  • Constructor Details

    • Rife2Extension

      public Rife2Extension()
  • Method Details

    • getVersion

      public abstract org.gradle.api.provider.Property<String> getVersion()
      The RIFE2 version that should be used by the project.
      Returns:
      the RIFE2 version as a string
    • getUseAgent

      public abstract org.gradle.api.provider.Property<Boolean> getUseAgent()
      Indicates whether the project should be launched with the RIFE2 agent or not.
      Returns:
      true when the project should be launched with the RIFE2 agent; false otherwise
    • getUberMainClass

      public abstract org.gradle.api.provider.Property<String> getUberMainClass()
      Specifies the main Java class to use when building the uber jar.

      This defaults to the same main class as your application.

      Returns:
      the fully qualified name of the main class to use when launching the uber jar.
    • getIncludeServerDependencies

      public abstract org.gradle.api.provider.Property<Boolean> getIncludeServerDependencies()
      Specifies whether to include the dependencies for the embedded Jetty server. Defaults to true.
      Returns:
      true when the embedded server dependencies need to be included; false otherwise
    • getPrecompiledTemplateTypes

      public abstract org.gradle.api.provider.ListProperty<TemplateType> getPrecompiledTemplateTypes()
      Specifies the template types that should be precompiled. By default, none are precompiled.
      Returns:
      a list of template types to precompile
    • getTemplateDirectories

      public abstract org.gradle.api.file.ConfigurableFileCollection getTemplateDirectories()
      Specifies the directories where the template files can be found. By default, this includes "src/main/resources/templates".
      Returns:
      the collection of directories to look for template files