Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.4 KB

readme.md

File metadata and controls

41 lines (32 loc) · 1.4 KB

Artifact Id Gradle Plugin

[Circle CI] (https://circleci.com/gh/nickwph/artifactid-gradle) [codecov.io] (https://codecov.io/github/nickwph/artifactid-gradle) [ Download] (https://bintray.com/nickwph/maven/artifactid-gradle/_latestVersion)

What does this plugin do

Allow you to do following in build.gradle.
In the background it will do ext.artifactId = 'the-artifact-id'.

id 'the-artifact-id'

Usage

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.nicholasworkshop:gradle-artifactid:1.0.0'
    }
}

apply plugin: 'com.nicholasworkshop.artifactid'

id 'the-artifact-id'

DSL

Method Description
void id(String) Set Id.
String getId() Return the id, null will be reutned if id is not set.
boolean hasId() Return if id is set.