mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
Fix version for build
This commit is contained in:
parent
a8a0f3c459
commit
84393b100f
@ -1,2 +1,2 @@
|
||||
application.version=${version}
|
||||
git.commit.id.abbrev = ${git.commit.id.abbrev}
|
||||
application.version=@version@
|
||||
git.commit.id.abbrev=@gitrev@
|
||||
|
10
build.gradle
10
build.gradle
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user