2022-04-05 17:10:08 +00:00
|
|
|
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")
|
2022-04-27 17:24:18 +00:00
|
|
|
|
|
|
|
Versions.lwjglNatives.forEach {
|
|
|
|
runtimeOnly("org.lwjgl", "lwjgl", classifier = it)
|
|
|
|
runtimeOnly("org.lwjgl", "lwjgl-xxhash", classifier = it)
|
|
|
|
runtimeOnly("org.lwjgl", "lwjgl-zstd", classifier = it)
|
|
|
|
}
|
2022-04-05 17:10:08 +00:00
|
|
|
}
|