32 lines
848 B
Kotlin
32 lines
848 B
Kotlin
plugins {
|
|
`java-library`
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
}
|
|
|
|
tasks.register("verifyNoBinaryAssets") {
|
|
group = "verification"
|
|
description = "Rejects copied or generated binary assets from the metadata-only fan-content catalog."
|
|
inputs.files(fileTree("src/main/resources") {
|
|
include(
|
|
"**/*.jar", "**/*.zip", "**/*.class", "**/*.png", "**/*.jpg", "**/*.jpeg",
|
|
"**/*.ogg", "**/*.wav", "**/*.mp3", "**/*.bbmodel", "**/*.blockymodel", "**/*.blockyanim"
|
|
)
|
|
})
|
|
|
|
doLast {
|
|
check(inputs.files.isEmpty) {
|
|
"content-pokemon may contain metadata only; binary/generated files found: " +
|
|
inputs.files.files.joinToString { it.path }
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.named("check") {
|
|
dependsOn("verifyNoBinaryAssets")
|
|
}
|