Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.53 KB

README.md

File metadata and controls

50 lines (38 loc) · 1.53 KB

In order to use the jPOS APP Plugin

  1. Add to your build.gradle
plugins {
    id 'org.jpos.jposapp' version '0.0.10'
}
  1. Add to your settings.gradle
pluginManagement {
    repositories {
        maven { url = uri('https://jpos.org/maven') }
        gradlePluginPortal()
    }
}

See Gradle Plugin Repository for latest version.

Plugin configuration

To change the default values of the plugin, you can use the jpos property:

jpos {
    target = "devel"                        // string, which configuration file read from the root. default "devel" (devel.properties)
    addGitRevision = true                   // boolean, if the file revision.properties should be created
    addBuildTime = true                     // boolean, if the file buildinfo.properties should be created
    archiveJarName = "jpos.jar"             // string, the name of the jar, default '${project}-${version}.jar'
    archiveWarName = "jpos.war"             // string, the name of the war, default '${project}-${version}.war'
    installDir = build/install/jpos         // string, the default install dir, default to '${build}/install/${project}'
    distDir = src/dist                      // string, path to the distribution folder
}

For example, if we want to create an inmutable build file, we can disable the git and build time info:

jpos {
    addGitRevision = false
    addBuildTime false
}

This will generate always the same jar (and dist folder)