mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
fixes #41 - fixes Ziggy problem w/ filtering JAR
This commit is contained in:
parent
5ab853a249
commit
f551710f51
20
build.gradle
20
build.gradle
@ -2,6 +2,7 @@ apply plugin: 'java'
|
||||
apply plugin: 'maven'
|
||||
apply plugin: 'license'
|
||||
ext.apktoolversion = '1.5.1-SNAPSHOT'
|
||||
import org.apache.tools.ant.filters.*
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@ -83,17 +84,20 @@ subprojects {
|
||||
}
|
||||
}
|
||||
project(':brut.apktool:apktool-lib') {
|
||||
gradle.taskGraph.whenReady {
|
||||
task copy << {
|
||||
from 'src/main/resources'
|
||||
into 'build/resources/main'
|
||||
include '**/*.jar'
|
||||
}
|
||||
}
|
||||
|
||||
processResources {
|
||||
from('src/main/resources/properties') {
|
||||
include '**/*.properties'
|
||||
into 'properties'
|
||||
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)])
|
||||
filter(ReplaceTokens, tokens: [version: apktoolversion, gitrev: ant.properties[ext.fullrev].substring(0,10)])
|
||||
}
|
||||
from('src/main/resources/') {
|
||||
include '**/*.jar'
|
||||
}
|
||||
|
||||
includeEmptyDirs = false
|
||||
}
|
||||
dependencies {
|
||||
compile ("junit:junit:4.10") {
|
||||
|
Loading…
Reference in New Issue
Block a user