Interface JPOSPluginExtension
public interface JPOSPluginExtension
Extension for the JPOSPlugin
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionasMap()Converts the current properties to a map for easy access and manipulation.org.gradle.api.provider.Property<Boolean> Determines if the task that adds the build time metadata should be executed.org.gradle.api.provider.Property<Boolean> Determines if the task that adds the git metadata should be executed.org.gradle.api.provider.Property<String> Retrieves the name of the JAR file to be built.org.gradle.api.provider.Property<String> Retrieves the name of the WAR file to be placed in the distribution.org.gradle.api.provider.Property<String> Retrieves the directory that will serve as the source for the distribution.org.gradle.api.provider.ListProperty<String> Retrieves the list of extra paths from src/dist/ to include in distnc/zipnc tasks.org.gradle.api.provider.Property<String> Retrieves the directory path where the artifacts will be installed.Retrieves a map of properties that can be used internally by the plugin.org.gradle.api.provider.Property<String> Retrieves the target configuration property to use.default voidinitConventions(org.gradle.api.Project project) Initializes the convention values for the plugin properties based on the given project.default voidloadFromProject(org.gradle.api.Project project) Loads the plugin properties from the project-specific configuration file.
-
Field Details
-
NAME
-
EXCLUDED_FILES
-
-
Method Details
-
getTarget
Retrieves the target configuration property to use.- Returns:
- the Property representing the target configuration
-
getAddGitRevision
Determines if the task that adds the git metadata should be executed.- Returns:
- the Property indicating whether to include revision.properties info in the distribution folder
-
getAddBuildTime
Determines if the task that adds the build time metadata should be executed.- Returns:
- the Property indicating whether to include buildinfo.properties file in the distribution folder
-
getArchiveJarName
Retrieves the name of the JAR file to be built.- Returns:
- the Property representing the name of the archive JAR
-
getArchiveWarName
Retrieves the name of the WAR file to be placed in the distribution.- Returns:
- the Property representing the name of the archive WAR
-
getInstallDir
Retrieves the directory path where the artifacts will be installed.- Returns:
- the Property indicating the installation directory
-
getDistDir
Retrieves the directory that will serve as the source for the distribution.- Returns:
- the Property indicating the source directory for the distribution
-
getExtraPaths
Retrieves the list of extra paths from src/dist/ to include in distnc/zipnc tasks.- Returns:
- the ListProperty of extra path names
-
getProperties
-
loadFromProject
Loads the plugin properties from the project-specific configuration file. The configuration file name is derived from the target environment and must exist at the project root level.- Parameters:
project- The Gradle project from which to load properties.- Throws:
IOException- If there is an error reading the configuration file.
-
asMap
-
initConventions
default void initConventions(org.gradle.api.Project project) Initializes the convention values for the plugin properties based on the given project. This sets up default values for properties such as the target environment, build time, git revision, and naming conventions for JAR and WAR archives.- Parameters:
project- The Gradle project whose settings will be used to initialize the conventions.
-