From e4a3cf7e6c1fed92a22a82937593b4bc99cf2504 Mon Sep 17 00:00:00 2001 From: 327135569 Date: Wed, 7 Apr 2021 17:24:28 +0800 Subject: [PATCH] fix jar runtime exception --- patch/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/patch/build.gradle b/patch/build.gradle index 91bcc97..cd17477 100644 --- a/patch/build.gradle +++ b/patch/build.gradle @@ -10,10 +10,10 @@ java { compileJava.options.encoding = "UTF-8" dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) - compile project(':axmlprinter') - compile project(':apksigner') - compile group: 'commons-io', name: 'commons-io', version: '2.8.0' + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation project(':axmlprinter') + implementation project(':apksigner') + implementation group: 'commons-io', name: 'commons-io', version: '2.8.0' } jar { @@ -23,7 +23,7 @@ jar { attributes 'Main-Class': 'com.storm.wind.xpatch.MainCommand' } from { - (configurations.runtime).collect { + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }