phantasmal-world/web/assets-generation/build.gradle.kts

25 lines
646 B
Plaintext

plugins {
id("world.phantasmal.jvm")
}
kotlin {
sourceSets.configureEach {
languageSettings.optIn("kotlinx.serialization.ExperimentalSerializationApi")
}
}
dependencies {
implementation(project(":psolib"))
implementation(project(":web:shared"))
implementation("org.jsoup:jsoup:1.13.1")
}
tasks.register<JavaExec>("generateAssets") {
val outputFile = layout.buildDirectory.get().asFile.resolve("generatedAssets")
outputs.dir(outputFile)
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("world.phantasmal.web.assetsGeneration.MainKt")
args = listOf(outputFile.absolutePath)
}