2020-09-02 19:44:09 +00:00
|
|
|
apply plugin: 'java-library'
|
|
|
|
|
|
|
|
description = ""
|
|
|
|
|
2020-12-21 03:09:44 +00:00
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
config {
|
|
|
|
java {
|
|
|
|
srcDir "src/config/java"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
java {
|
2021-01-01 21:57:46 +00:00
|
|
|
srcDir "$buildDir/generated/java"
|
2020-12-21 03:09:44 +00:00
|
|
|
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
|
|
|
|
|
2020-09-02 19:44:09 +00:00
|
|
|
dependencies {
|
2021-01-16 16:44:44 +00:00
|
|
|
api project(":plutouss2")
|
|
|
|
|
2020-09-02 19:44:09 +00:00
|
|
|
api platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
|
|
|
|
|
2020-10-17 22:39:53 +00:00
|
|
|
api "com.google.code.findbugs:jsr305:3.0.2"
|
2020-09-02 19:44:09 +00:00
|
|
|
api "com.google.code.gson:gson:2.8.5"
|
|
|
|
api "com.google.guava:guava:28.0-jre"
|
2020-10-17 22:39:53 +00:00
|
|
|
|
|
|
|
api "org.joml:joml:${jomlVersion}"
|
|
|
|
api "commons-io:commons-io:2.6"
|
|
|
|
api "org.apache.commons:commons-lang3:3.11"
|
2020-09-02 19:44:09 +00:00
|
|
|
}
|