Critical bug fix.

This commit is contained in:
zaxar163 2019-01-09 13:42:36 +04:00
parent a032e1546a
commit 5b21ad4d7b
No known key found for this signature in database
GPG key ID: CEE900027AE098E0

View file

@ -10,7 +10,14 @@
sourceCompatibility = '1.8' sourceCompatibility = '1.8'
targetCompatibility = '1.8' targetCompatibility = '1.8'
configurations {
bundle
pack
compile.extendsFrom bundle, pack
}
jar { jar {
from { configurations.pack.collect { it.isDirectory() ? it : zipTree(it) } }
manifest.attributes("Main-Class": mainClassName, manifest.attributes("Main-Class": mainClassName,
"Premain-Class": mainAgentName, "Premain-Class": mainAgentName,
"Can-Redefine-Classes": "true", "Can-Redefine-Classes": "true",
@ -19,8 +26,8 @@
} }
dependencies { dependencies {
compile project(':LauncherAPI') pack project(':LauncherAPI') // Not error on obf.
compile 'com.github.oshi:oshi-core:3.11.0' bundle 'com.github.oshi:oshi-core:3.11.0'
} }
task genRuntimeJS(type: Zip) { task genRuntimeJS(type: Zip) {
@ -31,7 +38,7 @@ task genRuntimeJS(type: Zip) {
task dumpLibs(type: Copy) { task dumpLibs(type: Copy) {
into "$buildDir/libs/libraries" into "$buildDir/libs/libraries"
from configurations.runtime from configurations.bundle
} }