SimpleJavaEngine/build.gradle

84 lines
2.1 KiB
Groovy
Raw Normal View History

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
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 {
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 {
configurations.runtimeClasspath.collect {
2023-12-16 16:27:27 +01:00
it.isDirectory() ? it : zipTree(it)
}
}
2024-07-16 02:14:04 +02:00
duplicatesStrategy = DuplicatesStrategy.INCLUDE
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 {
2024-07-16 02:14:04 +02:00
manifest {
attributes "Main-Class": 'speiger.src.coreengine.NewInputTest'
}
2023-12-16 16:27:27 +01:00
from {
configurations.runtimeClasspath.collect {
2023-12-16 16:27:27 +01:00
it.isDirectory() ? it : zipTree(it)
}
}
2024-07-16 02:14:04 +02:00
exclude('**/*.LIST')
exclude('**/module-info.class')
duplicatesStrategy = DuplicatesStrategy.INCLUDE
2023-05-19 21:26:57 +02:00
}
dependencies {
//LWJGL 3
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
2023-05-19 21:26:57 +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-08-07 20:23:26 +02:00
implementation "org.lwjgl:lwjgl-freetype"
2024-04-14 23:30:55 +02:00
implementation "org.lwjgl:lwjgl-nanovg"
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-08-07 20:23:26 +02:00
implementation "org.lwjgl:lwjgl-freetype::$lwjglNatives"
2024-04-14 23:30:55 +02:00
implementation "org.lwjgl:lwjgl-nanovg::$lwjglNatives"
2023-05-19 21:26:57 +02:00
2024-08-07 20:23:26 +02:00
2023-05-19 21:26:57 +02:00
//Gson
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
}