Open GoGoris opened 1 year ago
The Gradle documentation is outdated for Gradle 8.
Update the documentation to use the lazy tasks.register api instead of the deprecated methods.
def generateModelsTask = tasks.register('generateModels', GenerateTask) { generatorName = "java" inputSpec = "<inputSpec>" outputDir = "<outputDir>" modelPackage = "<package>" generateModelTests = false globalProperties.putAll([ // force only the models apis : "false", invokers: "false", ]) configOptions.putAll([ library : "native", serializationLibrary: "jackson", dateLibrary : "java8", useJakartaEe : "true", ]) } compileJava.dependsOn generateModelsTask
/
https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:defining_tasks
can you please file a PR to update the readme?
Hi @wing328, I will submit a PR this week when I have some time.
Is your feature request related to a problem? Please describe.
The Gradle documentation is outdated for Gradle 8.
Describe the solution you'd like
Update the documentation to use the lazy tasks.register api instead of the deprecated methods.
Describe alternatives you've considered
/
Additional context
https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:defining_tasks