add gradle

This commit is contained in:
Sen 2025-05-26 17:09:08 +02:00
parent bb6ebb0be8
commit 4e51e18bdc
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
3033 changed files with 470 additions and 0 deletions

12
.gitattributes vendored Normal file
View file

@ -0,0 +1,12 @@
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# Linux start script should use lf
/gradlew text eol=lf
# These are Windows script files and should use crlf
*.bat text eol=crlf
# Binary files should be left untouched
*.jar binary

2
.gitignore vendored
View file

@ -7,3 +7,5 @@
.classpath .classpath
.project .project
.settings .settings
.gradle
build

48
client/build.gradle.kts Normal file
View 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"
}

Some files were not shown because too many files have changed in this diff Show more