Package com.uwyn.rife2.gradle
Class Rife2Extension
java.lang.Object
com.uwyn.rife2.gradle.Rife2Extension
The Gradle RIFE2 extension
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.provider.Property<Boolean>Specifies whether to include the dependencies for the embedded Jetty server.abstract org.gradle.api.provider.ListProperty<TemplateType>Specifies the template types that should be precompiled.abstract org.gradle.api.file.ConfigurableFileCollectionSpecifies the directories where the template files can be found.abstract org.gradle.api.provider.Property<String>Specifies the main Java class to use when building the uber jar.abstract org.gradle.api.provider.Property<Boolean>Indicates whether the project should be launched with the RIFE2 agent or not.abstract org.gradle.api.provider.Property<String>The RIFE2 version that should be used by the project.
-
Constructor Details
-
Rife2Extension
public Rife2Extension()
-
-
Method Details
-
getVersion
The RIFE2 version that should be used by the project.- Returns:
- the RIFE2 version as a string
-
getUseAgent
Indicates whether the project should be launched with the RIFE2 agent or not.- Returns:
truewhen the project should be launched with the RIFE2 agent;falseotherwise
-
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
Specifies whether to include the dependencies for the embedded Jetty server. Defaults totrue.- Returns:
truewhen the embedded server dependencies need to be included;falseotherwise
-
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
-