mirror of
https://github.com/revanced/Apktool.git
synced 2025-05-02 06:54:25 +02: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: 'maven'
|
||||||
apply plugin: 'license'
|
apply plugin: 'license'
|
||||||
ext.apktoolversion = '1.5.1-SNAPSHOT'
|
ext.apktoolversion = '1.5.1-SNAPSHOT'
|
||||||
|
import org.apache.tools.ant.filters.*
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@ -83,17 +84,20 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
project(':brut.apktool:apktool-lib') {
|
project(':brut.apktool:apktool-lib') {
|
||||||
gradle.taskGraph.whenReady {
|
|
||||||
task copy << {
|
|
||||||
from 'src/main/resources'
|
|
||||||
into 'build/resources/main'
|
|
||||||
include '**/*.jar'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
processResources {
|
processResources {
|
||||||
|
from('src/main/resources/properties') {
|
||||||
|
include '**/*.properties'
|
||||||
|
into 'properties'
|
||||||
ext.fullrev = ''
|
ext.fullrev = ''
|
||||||
ant.loadfile(srcFile: "../../.git/refs/heads/master", property: 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 {
|
dependencies {
|
||||||
compile ("junit:junit:4.10") {
|
compile ("junit:junit:4.10") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user