Skip to content

Commit

Permalink
build(bpmn-model): replaces clirr with revapi
Browse files Browse the repository at this point in the history
Replaces clirr with revapi, keeping the same exemptions as before:
ignoring new methods in all Zeebe extensions, as they aren't meant to be
implemented but only consumed.

(cherry picked from commit 23a2e95)
  • Loading branch information
npepinpe committed Jun 4, 2021
1 parent 04f534d commit 8eb7215
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
17 changes: 7 additions & 10 deletions bpmn-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,14 @@
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>clirr-maven-plugin</artifactId>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<configuration>
<ignored>
<ignored>
<!-- ignore new methods in the Zeebe element instance interfaces -->
<className>io/camunda/zeebe/model/bpmn/instance/zeebe/*</className>
<differenceType>7012</differenceType>
<method>*</method>
</ignored>
</ignored>
<analysisConfigurationFiles>
<configurationFile>
<path>revapi.json</path>
</configurationFile>
</analysisConfigurationFiles>
</configuration>
</plugin>
</plugins>
Expand Down
18 changes: 18 additions & 0 deletions bpmn-model/revapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{
"extension": "revapi.differences",
"configuration": {
"justification": "Ignore new methods for Zeebe extensions, as these are not meant to be implemented but simply consumed; as such, new methods are perfectly fine to add",
"ignore": true,
"differences": [
{
"code": "java.method.addedToInterface",
"new": {
"matcher": "java-package",
"match": "/io\\.camunda\\.zeebe\\.model\\.bpmn\\.instance\\.zeebe(\\..*)?/"
}
}
]
}
}
]

0 comments on commit 8eb7215

Please sign in to comment.