Skip to content

24i/gitMavenVersioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build of this plugin

This is how to build the plugin and install it in your local repository

./gradlew clean install

To build from the build server and install it in artifactory

./gradlew clean artifactoryPublish

Usage of the plugin

Include this in the build.gradle file

Example of buildscript addition:

buildscript {
    repositories {
        mavenLocal()
        maven { url "https://ssl.nordija.com/artifactory/NordijaCentral"
            credentials {
                username = gradleUsername
                password = gradlePassword
            }
        }
        mavenCentral()
        maven { url "http://download.java.net/maven/2/" }
        maven { url "http://repo.maven.apache.org/maven2" }
    }
    dependencies {
        classpath group: 'com.nordija', name: 'gitMavenVersioning', version: '1.0.+'
    }
}

Example of usage:

apply plugin: 'com.nordija.versionManager'

Two tasks can be called:

showVersion will display information about the values generated by the plugin.

findVersion will store all the information in the System.properties. all properties can be seen by showVersion

printVersion will print the project.version

A parameter called CI can be set to true if the plugin is running on a CI server. This will not try to call the remote origin for finding the parent branches. The gradle command needs to be called like this:

-PCI=true

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages