Fix version for build

This commit is contained in:
Ziggy 2012-09-26 20:59:25 -04:00
parent a8a0f3c459
commit 84393b100f
2 changed files with 11 additions and 3 deletions

View File

@ -1,2 +1,2 @@
application.version=${version}
git.commit.id.abbrev = ${git.commit.id.abbrev}
application.version=@version@
git.commit.id.abbrev=@gitrev@

View File

@ -1,6 +1,7 @@
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'license'
ext.apktoolversion = '1.5.1-SNAPSHOT'
repositories {
mavenCentral()
@ -90,6 +91,11 @@ subprojects {
}
}
project(':brut.apktool:apktool-lib') {
processResources {
ext.fullrev = ''
ant.loadfile(srcFile: "../../.git/refs/heads/master", property: ext.fullrev)
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [version: apktoolversion, gitrev: ant.properties[ext.fullrev].substring(0,10)])
}
dependencies {
compile ("junit:junit:4.10") {
exclude(module: 'hamcrest-core')
@ -101,6 +107,8 @@ subprojects {
}
}
project(':brut.apktool:apktool-cli') {
version = apktoolversion
gradle.taskGraph.whenReady {
// build a jar containing all dependencies
jar {
@ -115,4 +123,4 @@ subprojects {
dependencies {
compile project(':brut.apktool:apktool-lib')
}
}
}