mirror of
https://github.com/revanced/Apktool.git
synced 2025-02-16 05:26:49 +01:00
refactor: 'compile' it's deprecated
`compile` it's deprecated since Gradle 6.0 and been discouraged since Gradle 3.4. We should use `implementation` and `api` instead because `compile` will be removed in Gradle 7.0. https://docs.gradle.org/6.5.1/userguide/upgrading_version_5.html#deprecations
This commit is contained in:
parent
5a5566bf27
commit
4c3f1f335a
@ -16,8 +16,8 @@
|
|||||||
apply plugin: 'com.github.johnrengelman.shadow'
|
apply plugin: 'com.github.johnrengelman.shadow'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile depends.commons_cli
|
implementation depends.commons_cli
|
||||||
compile project(':brut.apktool:apktool-lib')
|
implementation project(':brut.apktool:apktool-lib')
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
import org.apache.tools.ant.filters.*
|
import org.apache.tools.ant.filters.*
|
||||||
|
|
||||||
|
apply plugin: 'java-library'
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
from('src/main/resources/properties') {
|
from('src/main/resources/properties') {
|
||||||
include '**/*.properties'
|
include '**/*.properties'
|
||||||
@ -29,19 +31,21 @@ processResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile("junit:junit:4.10") {
|
testImplementation("junit:junit:4.10") {
|
||||||
exclude(module: 'hamcrest-core')
|
exclude(module: 'hamcrest-core')
|
||||||
}
|
}
|
||||||
|
|
||||||
compile project(':brut.j.dir'),
|
api project(':brut.j.dir'),
|
||||||
project(':brut.j.util'),
|
project(':brut.j.util'),
|
||||||
project(':brut.j.common'),
|
project(':brut.j.common')
|
||||||
depends.baksmali,
|
|
||||||
depends.smali,
|
|
||||||
depends.snakeyaml,
|
|
||||||
depends.xmlpull,
|
|
||||||
depends.guava,
|
|
||||||
depends.commons_lang
|
|
||||||
|
|
||||||
testCompile depends.xmlunit
|
implementation depends.baksmali,
|
||||||
|
depends.smali,
|
||||||
|
depends.snakeyaml,
|
||||||
|
depends.xmlpull,
|
||||||
|
depends.guava,
|
||||||
|
depends.commons_lang,
|
||||||
|
depends.commons_io
|
||||||
|
|
||||||
|
testImplementation depends.xmlunit
|
||||||
}
|
}
|
@ -15,6 +15,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile depends.junit
|
testImplementation depends.junit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':brut.j.common'),
|
implementation project(':brut.j.common'),
|
||||||
project(':brut.j.util')
|
project(':brut.j.util'),
|
||||||
testCompile depends.junit
|
depends.commons_io
|
||||||
|
testImplementation depends.junit
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile project(':brut.j.common'),
|
implementation project(':brut.j.common'),
|
||||||
depends.commons_io
|
depends.commons_io
|
||||||
testCompile depends.junit
|
testImplementation depends.junit
|
||||||
}
|
}
|
||||||
|
@ -26,13 +26,13 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id "com.github.hierynomus.license" version "0.15.0"
|
id 'com.github.hierynomus.license' version '0.15.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'gradle/functions.gradle'
|
apply from: 'gradle/functions.gradle'
|
||||||
|
|
||||||
def apktoolversion_major = '2.4.2'
|
def apktoolversion_major = '2.4.2'
|
||||||
def apktoolversion_minor = 'SNAPSHOT';
|
def apktoolversion_minor = 'SNAPSHOT'
|
||||||
|
|
||||||
defaultTasks 'build', 'shadowJar', 'proguard'
|
defaultTasks 'build', 'shadowJar', 'proguard'
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ allprojects {
|
|||||||
exclude "**/android/util/*.java"
|
exclude "**/android/util/*.java"
|
||||||
include "**/*.java"
|
include "**/*.java"
|
||||||
mapping {
|
mapping {
|
||||||
java='SLASHSTAR_STYLE'
|
java = 'SLASHSTAR_STYLE'
|
||||||
}
|
}
|
||||||
strictCheck true
|
strictCheck true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user