diff --git a/README.md b/README.md index 3ae5a32..d1a6ab4 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ contract and code always match, even as your APIs evolve in complexity. [![Gradle Plugin Portal Version](https://img.shields.io/gradle-plugin-portal/v/ch.acanda.gradle.fabrikt?style=flat)](https://plugins.gradle.org/plugin/ch.acanda.gradle.fabrikt) -The plugin requires at least Gradle 8.6 and a JRE 17. +The plugin requires at least Gradle 8.8 and a JRE 17. To use it with the Kotlin DSL (build.gradle.kts): diff --git a/src/main/kotlin/ch/acanda/gradle/fabrikt/FabriktGenerateTask.kt b/src/main/kotlin/ch/acanda/gradle/fabrikt/FabriktGenerateTask.kt index b433b6e..054407d 100644 --- a/src/main/kotlin/ch/acanda/gradle/fabrikt/FabriktGenerateTask.kt +++ b/src/main/kotlin/ch/acanda/gradle/fabrikt/FabriktGenerateTask.kt @@ -43,8 +43,9 @@ abstract class FabriktGenerateTask @Inject constructor( } private fun generatorProblem(e: GeneratorException, name: String) = Action { problem: ProblemSpec -> - problem.category("code-generation", "openapi", name.lowercase()) - .label("Fabrikt failed to generate code for configuration $name.") + problem + .id("fabrikt-code-generation", "Fabrikt failed to generate code.") + .contextualLabel("Fabrikt failed to generate code for configuration $name.") .details("Fabrikt failed to generate code for the OpenAPI specification ${e.apiFile}.") .severity(Severity.ERROR) }