plutoengine/plutolib/build.gradle

44 lines
845 B
Groovy

apply plugin: 'java-library'
description = ""
sourceSets {
config {
java {
srcDir "src/config/java"
}
}
main {
java {
compileClasspath += config.output
}
}
}
task generateConfigs(type: Copy) {
def projectVariables = [
plutoVersion: project.version,
]
inputs.properties projectVariables
from 'src/config/java'
into "$buildDir/generated/java"
expand projectVariables
}
compileJava.dependsOn generateConfigs
dependencies {
api platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
api "com.google.code.findbugs:jsr305:3.0.2"
api "com.google.code.gson:gson:2.8.5"
api "com.google.guava:guava:28.0-jre"
api "org.joml:joml:${jomlVersion}"
api "commons-io:commons-io:2.6"
api "org.apache.commons:commons-lang3:3.11"
}