Launcher/Launcher/build.gradle
2018-10-31 12:51:18 +03:00

42 lines
1.1 KiB
Groovy

String realMainClassName = "ru.gravit.launcher.ClientLauncherWrapper"
String mainAgentName = "ru.gravit.launcher.LauncherAgent"
String mainClassName = "ru.gravit.launcher.relauncher.VerRelauncher"
String errMessage = "Please, download Java 8 or higher."
String minVer = "52"
repositories {
maven {
url "http://repo.spring.io/plugins-release/"
}
}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
jar {
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
manifest.attributes("Main-Class": mainClassName,
"MainRun-Class": realMainClassName,
"ErrorMessage-String": errMessage,
"MinVesion-Integer": minVer,
"Premain-Class": mainAgentName,
"Can-Redefine-Classes": "true",
"Can-Retransform-Classes": "true",
"Can-Set-Native-Method-Prefix": "true")
}
dependencies {
compile project(':LauncherAPI')
compile project(':javaVerRelauncher')
compile 'org.javassist:javassist:3.23.1-GA'
}
task genRuntimeJS(type: Zip) {
archiveName = "runtime.zip"
destinationDir = file("${buildDir}/tmp")
from "runtime/"
}
build.dependsOn tasks.genRuntimeJS