plutoengine/engine-core/plutoruntime/build.gradle.kts

47 lines
1.1 KiB
Plaintext
Raw Normal View History

import org.plutoengine.Versions
sourceSets {
java {
create("config") {
}
main {
java.srcDirs("$buildDir/generated/java")
}
}
}
tasks {
val generateConfigs = register("generateConfigs", Copy::class) {
val projectVariables = mapOf("plutoVersion" to Versions.versionFull)
inputs.properties(projectVariables)
from("src/config/java")
into("$buildDir/generated/java")
expand(projectVariables)
}
compileJava {
dependsOn(generateConfigs)
}
}
dependencies {
api(project(":plutoengine:plutolib"))
api(project(":plutoengine:plutocomponent"))
api(platform("org.lwjgl:lwjgl-bom:${Versions.lwjglVersion}"))
implementation("org.lwjgl:lwjgl")
implementation("org.lwjgl:lwjgl-xxhash")
implementation("org.lwjgl:lwjgl-zstd")
Versions.lwjglNatives.forEach {
runtimeOnly("org.lwjgl", "lwjgl", classifier = it)
runtimeOnly("org.lwjgl", "lwjgl-xxhash", classifier = it)
runtimeOnly("org.lwjgl", "lwjgl-zstd", classifier = it)
}
}