mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-23 02:07:36 +01:00
Fix version for build
This commit is contained in:
parent
a8a0f3c459
commit
84393b100f
@ -1,2 +1,2 @@
|
|||||||
application.version=${version}
|
application.version=@version@
|
||||||
git.commit.id.abbrev = ${git.commit.id.abbrev}
|
git.commit.id.abbrev=@gitrev@
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
apply plugin: 'license'
|
apply plugin: 'license'
|
||||||
|
ext.apktoolversion = '1.5.1-SNAPSHOT'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -90,6 +91,11 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
project(':brut.apktool:apktool-lib') {
|
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 {
|
dependencies {
|
||||||
compile ("junit:junit:4.10") {
|
compile ("junit:junit:4.10") {
|
||||||
exclude(module: 'hamcrest-core')
|
exclude(module: 'hamcrest-core')
|
||||||
@ -101,6 +107,8 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
project(':brut.apktool:apktool-cli') {
|
project(':brut.apktool:apktool-cli') {
|
||||||
|
version = apktoolversion
|
||||||
|
|
||||||
gradle.taskGraph.whenReady {
|
gradle.taskGraph.whenReady {
|
||||||
// build a jar containing all dependencies
|
// build a jar containing all dependencies
|
||||||
jar {
|
jar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user