plugins { kotlin("jvm") } val kotlinLoggingVersion: String by project.extra val log4jVersion: String by project.extra dependencies { implementation(project(":lib")) implementation(project(":web:shared")) implementation("org.jsoup:jsoup:1.13.1") implementation("io.github.microutils:kotlin-logging:$kotlinLoggingVersion") runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion") } tasks.register("generateAssets") { val outputFile = File(buildDir, "generatedAssets") outputs.dir(outputFile) classpath = sourceSets.main.get().runtimeClasspath main = "world.phantasmal.web.assetsGeneration.MainKt" args = listOf(outputFile.absolutePath) }