Skip to content

Commit c906abd

Browse files
author
codebysd
committed
Added version from last git tag.
Updated docs. Defined project name in gradle.
1 parent 349ce50 commit c906abd

3 files changed

Lines changed: 31 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Suitable for automation of play store uploads in a CI system.
1111

1212
## Requirements
1313

14-
1. Java (JRE) 7 or above
14+
1. Java (JRE) 8 or above
1515

1616
## Install
1717

build.gradle

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,47 @@
1-
buildscript {
2-
3-
}
4-
1+
/**
2+
* Plugins
3+
*/
54
plugins {
65
id 'java'
76
id 'application'
8-
id 'org.ajoberstar.reckon' version '0.8.0'
9-
id "com.github.onslip.gradle-one-jar" version "1.0.5"
7+
id 'com.github.onslip.gradle-one-jar' version '1.0.5'
108
}
119

12-
group = 'codebysd'
10+
/**
11+
* Project Info
12+
*/
1313
sourceCompatibility = 1.8
1414
targetCompatibility = 1.8
15+
version = getVersion()
1516
mainClassName = 'App'
1617

17-
reckon {
18-
scopeFromProp()
19-
stageFromProp('beta','rc','final')
20-
}
21-
18+
/**
19+
* Repositories
20+
*/
2221
repositories {
2322
mavenCentral()
2423
}
2524

25+
/**
26+
* Dependencies
27+
*/
2628
dependencies {
2729
compile 'com.google.apis:google-api-services-androidpublisher:v3-rev23-1.25.0'
2830
compile 'args4j:args4j:2.33'
2931
compile 'net.dongliu:apk-parser:2.6.2'
32+
}
33+
34+
35+
/**
36+
* Get version from last git tag.
37+
* @returns Last git tag
38+
*/
39+
def getVersion(){
40+
def out = new ByteArrayOutputStream();
41+
exec {
42+
executable = 'git'
43+
args = ['describe', '--tags']
44+
standardOutput = out
45+
}
46+
return out.toString().replace('\n','')
3047
}

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'PlayStoreUploader'

0 commit comments

Comments
 (0)