Create build-desktopruntime.gradle
This commit is contained in:
parent
8118c4fca3
commit
18b9962493
38
build-desktopruntime.gradle
Normal file
38
build-desktopruntime.gradle
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
//rename this file to build.gradle
|
||||||
|
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id 'eclipse'
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
java {
|
||||||
|
srcDir 'src/main/java'
|
||||||
|
srcDir 'src/lwjgl/java'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
// https://stackoverflow.com/questions/21037879/add-library-to-gradle-build
|
||||||
|
dependencies {
|
||||||
|
implementation fileTree(dir: './desktopRuntime/eclipseProject/deps_fix/', include: '*.jar')
|
||||||
|
}
|
||||||
|
|
||||||
|
//credit to MCPreborn
|
||||||
|
tasks.register('runclient', JavaExec) {
|
||||||
|
group = "ShadowClient"
|
||||||
|
description = "Runs the client"
|
||||||
|
classpath sourceSets.main.runtimeClasspath
|
||||||
|
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
|
||||||
|
jvmArgs '-XstartOnFirstThread'
|
||||||
|
}
|
||||||
|
|
||||||
|
workingDir "./desktopRuntime"
|
||||||
|
main 'net.lax1dude.eaglercraft.v1_8.internal.lwjgl.MainClass'
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user