Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
Merge pull request #8 from ToxicBakery/development
Browse files Browse the repository at this point in the history
Updated name to moduleName and implemented method to return the expec…
  • Loading branch information
ToxicBakery committed Jul 13, 2015
2 parents dc774c8 + df628fc commit 9174b22
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,20 @@ import java.text.SimpleDateFormat
@SuppressWarnings(["GroovyUnusedDeclaration", "GrMethodMayBeStatic"])
class RenameConfigExtension {

String artifactFormat = '%name%-%versionName%-%gitBranch%-%gitSha1Short%-%timeStamp%.%ext%';
String artifactFormat = '%moduleName%-%versionName%-%gitBranch%-%gitSha1Short%-%timeStamp%.%ext%';
String outputExtension

/**
* Project variant names are now formatted as <productFlavor><status>. This method returns the
* module (project) name as %name% now typically returns the status which is not expected on
* single variant applications.
*
* @return the project/module name
*/
String moduleName() {
return project.name
}

String gitSha1() {
return executeCommand("git rev-parse HEAD")
}
Expand Down

0 comments on commit 9174b22

Please sign in to comment.