File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 1- buildscript {
2-
3- }
4-
1+ /**
2+ * Plugins
3+ */
54plugins {
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+ */
1313sourceCompatibility = 1.8
1414targetCompatibility = 1.8
15+ version = getVersion()
1516mainClassName = ' App'
1617
17- reckon {
18- scopeFromProp()
19- stageFromProp(' beta' ,' rc' ,' final' )
20- }
21-
18+ /**
19+ * Repositories
20+ */
2221repositories {
2322 mavenCentral()
2423}
2524
25+ /**
26+ * Dependencies
27+ */
2628dependencies {
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+ * @return s 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}
Original file line number Diff line number Diff line change 1+ rootProject. name = ' PlayStoreUploader'
You can’t perform that action at this time.
0 commit comments