add gradle
This commit is contained in:
parent
bb6ebb0be8
commit
4e51e18bdc
3033 changed files with 470 additions and 0 deletions
12
.gitattributes
vendored
Normal file
12
.gitattributes
vendored
Normal 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
2
.gitignore
vendored
|
@ -7,3 +7,5 @@
|
||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
.settings
|
.settings
|
||||||
|
.gradle
|
||||||
|
build
|
||||||
|
|
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"
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue