Skip to content

Commit

Permalink
Update problem reporting to API from Gradle 8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
acanda committed Jun 2, 2024
1 parent 043f010 commit 3227228
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3227228

Please sign in to comment.