add gradle
This commit is contained in:
parent
bb6ebb0be8
commit
4e51e18bdc
3033 changed files with 470 additions and 0 deletions
48
client/build.gradle.kts
Normal file
48
client/build.gradle.kts
Normal file
|
@ -0,0 +1,48 @@
|
|||
|
||||
plugins {
|
||||
application
|
||||
id("com.gradleup.shadow") version "8.3.6"
|
||||
eclipse
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(project(":common"))
|
||||
|
||||
implementation(platform("org.lwjgl:lwjgl-bom:3.3.6"))
|
||||
|
||||
implementation("org.lwjgl", "lwjgl")
|
||||
implementation("org.lwjgl", "lwjgl-glfw")
|
||||
implementation("org.lwjgl", "lwjgl-opengl")
|
||||
|
||||
runtimeOnly("org.lwjgl", "lwjgl", classifier = "natives-linux")
|
||||
runtimeOnly("org.lwjgl", "lwjgl", classifier = "natives-freebsd")
|
||||
runtimeOnly("org.lwjgl", "lwjgl", classifier = "natives-windows")
|
||||
runtimeOnly("org.lwjgl", "lwjgl-glfw", classifier = "natives-linux")
|
||||
runtimeOnly("org.lwjgl", "lwjgl-glfw", classifier = "natives-freebsd")
|
||||
runtimeOnly("org.lwjgl", "lwjgl-glfw", classifier = "natives-windows")
|
||||
runtimeOnly("org.lwjgl", "lwjgl-opengl", classifier = "natives-linux")
|
||||
runtimeOnly("org.lwjgl", "lwjgl-opengl", classifier = "natives-freebsd")
|
||||
runtimeOnly("org.lwjgl", "lwjgl-opengl", classifier = "natives-windows")
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = "client.Client"
|
||||
tasks.run.get().workingDir = rootProject.file("dev/client")
|
||||
tasks.run.get().workingDir.mkdirs()
|
||||
tasks.run.get().systemProperties.put("crash.nodump", "")
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
destinationDirectory = rootProject.file("dev")
|
||||
archiveFileName = "tcr_client.jar"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue