I have two different sets of JSON schemas that need different jsonSchema2Pojo configuration. Could anyone help me with how to achieve this in Gradle?
task myJsonSchema2Pojo << {
generateJsonSchema2Pojo(source:files("src/main/resources/jsonschema"), targetPackage:'uk.wibble', targetDirectory:file("${generatedDir}")).execute()
}
When I run ./gradlew myJsonSchema2Pojo I see "Could not find method generateJsonSchema2Pojo() for arguments [{source=file collection, targetPackage=uk.wibble, targetDirectory=C:\myproject\src\main\generated}] on task ':myproject:myJsonSchema2Pojo' of type org.gradle.api.DefaultTask."
Any idea what I'm doing wrong?