From 5b21ad4d7bc8eb9242ad811c9c7b0ed90e28416b Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Wed, 9 Jan 2019 13:42:36 +0400 Subject: [PATCH] Critical bug fix. --- Launcher/build.gradle | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Launcher/build.gradle b/Launcher/build.gradle index cb0e0c9b..79220380 100644 --- a/Launcher/build.gradle +++ b/Launcher/build.gradle @@ -10,7 +10,14 @@ sourceCompatibility = '1.8' targetCompatibility = '1.8' +configurations { + bundle + pack + compile.extendsFrom bundle, pack +} + jar { + from { configurations.pack.collect { it.isDirectory() ? it : zipTree(it) } } manifest.attributes("Main-Class": mainClassName, "Premain-Class": mainAgentName, "Can-Redefine-Classes": "true", @@ -19,8 +26,8 @@ } dependencies { - compile project(':LauncherAPI') - compile 'com.github.oshi:oshi-core:3.11.0' + pack project(':LauncherAPI') // Not error on obf. + bundle 'com.github.oshi:oshi-core:3.11.0' } task genRuntimeJS(type: Zip) { @@ -31,7 +38,7 @@ task genRuntimeJS(type: Zip) { task dumpLibs(type: Copy) { into "$buildDir/libs/libraries" - from configurations.runtime + from configurations.bundle }