From d3b46155ef0756d55b9f3914af160d1f081a92c7 Mon Sep 17 00:00:00 2001 From: Zaxar163 <35835496+Zaxar163@users.noreply.github.com> Date: Fri, 21 Sep 2018 18:39:02 +0300 Subject: [PATCH] Fix build.gradle --- LaunchServer/build.gradle | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/LaunchServer/build.gradle b/LaunchServer/build.gradle index 6bfad37b..695e8bd8 100644 --- a/LaunchServer/build.gradle +++ b/LaunchServer/build.gradle @@ -2,15 +2,15 @@ def mainAgentName = "ru.gravit.launchserver.StarterAgent" repositories { - maven { - url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" - } - maven { - url "http://maven.geomajas.org/" - } - maven { - url "https://oss.sonatype.org/content/repositories/snapshots" - } + maven { + url "https://hub.spigotmc.org/nexus/content/repositories/snapshots" + } + maven { + url "http://maven.geomajas.org/" + } + maven { + url "https://oss.sonatype.org/content/repositories/snapshots" + } maven { url "http://repo.md-5.net/content/groups/public" } @@ -28,22 +28,21 @@ } jar { - dependsOn parent.childProjects.Launcher.tasks.build, parent.childProjects.Launcher.tasks.genRuntimeJS, parent.childProjects.Launcher.tasks.jar - from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } - from(parent.childProjects.Launcher.tasks.jar.archivePath, parent.childProjects.Launcher.tasks.genRuntimeJS.archivePath) - manifest.attributes("Main-Class": mainClassName, + dependsOn parent.childProjects.Launcher.tasks.build, parent.childProjects.Launcher.tasks.genRuntimeJS, parent.childProjects.Launcher.tasks.jar + from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } } + from(parent.childProjects.Launcher.tasks.jar.archivePath, parent.childProjects.Launcher.tasks.genRuntimeJS.archivePath) + manifest.attributes("Main-Class": mainClassName, "Premain-Class": mainAgentName, "Can-Redefine-Classes": "true", "Can-Retransform-Classes": "true", "Can-Set-Native-Method-Prefix": "true" - ) + ) } dependencies { - compile project(':libLauncher') // pack - compileOnly 'org.spigotmc:spigot-api:1.8-R0.1-SNAPSHOT' // api - compileOnly 'net.md-5:bungeecord-api:1.8-SNAPSHOT' // api - compileOnly group: 'io.netty', name: 'netty-all', version: '4.1.28.Final' + compile project(':libLauncher') // pack + compileOnly 'org.spigotmc:spigot-api:1.8-R0.1-SNAPSHOT' // api + compileOnly 'net.md-5:bungeecord-api:1.8-SNAPSHOT' // api compileOnly 'org.ow2.asm:asm-debug-all:5.0.4' bundleOnly 'org.ow2.asm:asm-all:5.0.4' bundle 'org.apache.logging.log4j:log4j-core:2.9.0' @@ -54,6 +53,7 @@ compile project(':libLauncher') // pack bundle 'org.fusesource.jansi:jansi:1.17.1' bundle 'commons-io:commons-io:2.6' bundle 'org.javassist:javassist:3.23.1-GA' + bundle 'io.netty:netty-all:4.1.28.Final' bundle 'org.slf4j:slf4j-simple:1.7.25' bundle 'org.slf4j:slf4j-api:1.7.25'