feat(content): add twelve-form Pokemon fan catalog
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
plugins {
|
||||
java
|
||||
application
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(25)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("com.fasterxml.jackson.core:jackson-databind:2.20.0")
|
||||
|
||||
testImplementation(platform("org.junit:junit-bom:5.13.4"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = "dev.projectcapture.contenttools.ContentTool"
|
||||
}
|
||||
|
||||
val fanContentRoot = rootProject.layout.projectDirectory
|
||||
.dir("content-pokemon/src/main/resources/projectcapture/content/v1")
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
systemProperty("projectCapture.contentRoot", fanContentRoot.asFile.absolutePath)
|
||||
}
|
||||
|
||||
tasks.register<JavaExec>("validateFanContent") {
|
||||
group = "verification"
|
||||
description = "Validates the unofficial, non-commercial fan-content catalog."
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
mainClass = application.mainClass
|
||||
args("validate", fanContentRoot.asFile.absolutePath)
|
||||
}
|
||||
|
||||
tasks.named("check") {
|
||||
dependsOn("validateFanContent")
|
||||
}
|
||||
Reference in New Issue
Block a user