feat(content): add twelve-form Pokemon fan catalog
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user