2023-05-19 21:26:57 +02:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
2023-12-16 16:27:27 +01:00
|
|
|
options.encoding = 'UTF-8'
|
2023-05-19 21:26:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
eclipse {
|
|
|
|
classpath {
|
|
|
|
downloadJavadoc = true
|
|
|
|
downloadSources = true
|
|
|
|
}
|
|
|
|
}
|
2023-12-16 16:27:27 +01:00
|
|
|
|
2024-01-25 18:34:58 +01:00
|
|
|
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = JavaLanguageVersion.of(21)
|
2023-12-16 16:27:27 +01:00
|
|
|
|
2023-05-19 21:26:57 +02:00
|
|
|
repositories {
|
2023-12-16 16:27:27 +01:00
|
|
|
mavenCentral()
|
|
|
|
maven {
|
2024-01-04 00:48:13 +01:00
|
|
|
name = "Speiger Maven"
|
2023-12-16 16:27:27 +01:00
|
|
|
url = "https://maven.speiger.com/repository/main"
|
|
|
|
}
|
2023-05-19 21:26:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task srcJar(type: Jar) {
|
2023-12-16 16:27:27 +01:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
archiveClassifier = 'sources'
|
|
|
|
from {
|
2024-01-04 00:48:13 +01:00
|
|
|
configurations.runtimeClasspath.collect {
|
2023-12-16 16:27:27 +01:00
|
|
|
it.isDirectory() ? it : zipTree(it)
|
|
|
|
}
|
|
|
|
}
|
2023-05-19 21:26:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
2023-12-16 16:27:27 +01:00
|
|
|
archives srcJar
|
2023-05-19 21:26:57 +02:00
|
|
|
}
|
|
|
|
|
2023-12-16 16:27:27 +01:00
|
|
|
jar {
|
|
|
|
from {
|
2024-01-04 00:48:13 +01:00
|
|
|
configurations.runtimeClasspath.collect {
|
2023-12-16 16:27:27 +01:00
|
|
|
it.isDirectory() ? it : zipTree(it)
|
|
|
|
}
|
|
|
|
}
|
2023-05-19 21:26:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
//LWJGL 3
|
2023-05-19 22:08:59 +02:00
|
|
|
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
|
2023-05-19 21:26:57 +02:00
|
|
|
|
2023-05-19 22:08:59 +02:00
|
|
|
implementation "org.lwjgl:lwjgl"
|
|
|
|
implementation "org.lwjgl:lwjgl-glfw"
|
|
|
|
implementation "org.lwjgl:lwjgl-jemalloc"
|
|
|
|
implementation "org.lwjgl:lwjgl-openal"
|
|
|
|
implementation "org.lwjgl:lwjgl-opengl"
|
|
|
|
implementation "org.lwjgl:lwjgl-stb"
|
|
|
|
implementation "org.lwjgl:lwjgl-nfd"
|
2024-04-14 23:30:55 +02:00
|
|
|
implementation "org.lwjgl:lwjgl-nanovg"
|
2023-05-19 22:08:59 +02:00
|
|
|
implementation "org.lwjgl:lwjgl::$lwjglNatives"
|
|
|
|
implementation "org.lwjgl:lwjgl-glfw::$lwjglNatives"
|
|
|
|
implementation "org.lwjgl:lwjgl-jemalloc::$lwjglNatives"
|
|
|
|
implementation "org.lwjgl:lwjgl-openal::$lwjglNatives"
|
|
|
|
implementation "org.lwjgl:lwjgl-opengl::$lwjglNatives"
|
|
|
|
implementation "org.lwjgl:lwjgl-stb::$lwjglNatives"
|
|
|
|
implementation "org.lwjgl:lwjgl-nfd::$lwjglNatives"
|
2024-04-14 23:30:55 +02:00
|
|
|
implementation "org.lwjgl:lwjgl-nanovg::$lwjglNatives"
|
2023-05-19 21:26:57 +02:00
|
|
|
|
|
|
|
//Gson
|
2023-05-19 22:08:59 +02:00
|
|
|
implementation 'com.google.code.gson:gson:2.8.6'
|
2023-05-19 21:26:57 +02:00
|
|
|
|
|
|
|
//Primitive Collections
|
2023-12-16 16:27:27 +01:00
|
|
|
implementation 'de.speiger:Primitive-Collections:0.9.0'
|
2021-08-27 06:07:15 +02:00
|
|
|
}
|