Skip to content

Commit

Permalink
move generation test
Browse files Browse the repository at this point in the history
  • Loading branch information
elifKurtay committed Nov 25, 2024
1 parent 5f1379b commit d98b70d
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 387 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@ def foodGenerator = tasks.register("generateFood", BeanGeneratorTask) {
packageName.convention("io.micronaut.jsonschema.generator.food")
}

def githubGenerator = tasks.register("generateGithub", BeanGeneratorTask) {
language = "java"
classpath.from(configurations.beanGenerator)
jsonFile.convention(layout.projectDirectory.file("src/test/resources/github-workflow.schema.json"))
outputDirectory.convention(layout.buildDirectory.dir("generated/jsonSchema"))
packageName.convention("io.micronaut.jsonschema.generator.github")
}

def fhirGenerator = tasks.register("generateFhir", BeanGeneratorTask) {
language = "java"
classpath.from(configurations.beanGenerator)
jsonFile.convention(layout.projectDirectory.file("src/test/resources/fhir.schema.json"))
outputDirectory.convention(layout.buildDirectory.dir("generated/jsonSchema"))
packageName.convention("io.micronaut.jsonschema.generator.fhir")
}

sourceSets {
main {
java.srcDir(beanGenerator.map(BeanGeneratorTask::getGeneratedSourcesDirectory))
Expand Down

This file was deleted.

131 changes: 0 additions & 131 deletions json-schema-generator/src/test/resources/animal.schema.json

This file was deleted.

38 changes: 0 additions & 38 deletions json-schema-generator/src/test/resources/food/food.schema.json

This file was deleted.

41 changes: 0 additions & 41 deletions json-schema-generator/src/test/resources/food/fruit.schema.json

This file was deleted.

Loading

0 comments on commit d98b70d

Please sign in to comment.