Skip to content

barspi/jpos-gradle-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

jPOS Gradle Plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%