Replace use of deprecated methods with their recommended replacements (#2713)

* Replace use of deprecated methods with their recommended replacements

* Add scripting jmod to proguard inputs
This commit is contained in:
Al Sutton 2021-12-13 11:27:19 +00:00 committed by GitHub
parent 6cfe2987e5
commit 95874be448
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View File

@ -58,6 +58,7 @@ task proguard(type: ProGuardTask, dependsOn: shadowJar) {
libraryjars "${System.properties['java.home']}/jmods/java.xml.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
libraryjars "${System.properties['java.home']}/jmods/java.desktop.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
libraryjars "${System.properties['java.home']}/jmods/java.sql.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
libraryjars "${System.properties['java.home']}/jmods/java.scripting.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
libraryjars "${System.properties['java.home']}/jmods/jdk.unsupported.jmod", jarfilter: '!**.jar', filter: '!module-info.class'
}

View File

@ -45,7 +45,8 @@ dependencies {
depends.xmlpull,
depends.guava,
depends.commons_lang,
depends.commons_io
depends.commons_io,
depends.commons_text
testImplementation depends.xmlunit
}

View File

@ -16,8 +16,8 @@
*/
package brut.androlib.meta;
import org.apache.commons.lang3.StringEscapeUtils;
import org.apache.commons.lang3.text.translate.CharSequenceTranslator;
import org.apache.commons.text.StringEscapeUtils;
import org.apache.commons.text.translate.CharSequenceTranslator;
import java.io.IOException;
import java.io.StringWriter;

View File

@ -22,6 +22,7 @@ buildscript {
commons_cli : 'commons-cli:commons-cli:1.4',
commons_io : 'commons-io:commons-io:2.11.0',
commons_lang : 'org.apache.commons:commons-lang3:3.12.0',
commons_text : 'org.apache.commons:commons-text:1.9',
guava : 'com.google.guava:guava:30.1.1-jre',
junit : 'junit:junit:4.13.2',
proguard_gradle: 'com.guardsquare:proguard-gradle:7.1.1',