mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
Critical bug fix.
This commit is contained in:
parent
a032e1546a
commit
5b21ad4d7b
1 changed files with 10 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue