-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External JSON configuration does not work #183
Comments
The reproducer repo is super useful, thank you. I have not had a chance to take a look at it yet, though. |
First of all, please upgrade to Now to your issue - you have a simple error in your configuration. Try to run
Which is not that super helpful, but given the fact you have a single file in the configuration active, you can see that the So rewriting [
{
"extension": "revapi.ignore",
"configuration": [
{
"code": "java.class.nonPublicPartOfAPI",
"new": "class org.springframework.boot.loader.jar.JarEntry",
"justification": "as in documentation: JSON Configuration Format"
}
]
}
] fixes your problem. You can read the documentation for the ignore settings here: https://revapi.org/modules/revapi-basic-features/extensions/ignore.html. Note that Revapi silently ignores configuration formatting errors mainly due to technical reasons - I implemented this in ancient times when there was no good json schema validator for java and so I am using a javascript based one that I invoke using java's script engine. You can imagine that this is not performing too well and substantially increases the runtime of the API check. I therefore opted to not run it on every analysis. See #142 which I wrote down to track this problem. I'm closing this issue but if you have any more questions or comments feel free to either submit a new issue or ask on the mailing list https://groups.google.com/forum/#!forum/revapi. |
Description
I am not able to externalize the configuration to a JSON file that ignores reported problems. Although I'm afraid of a user error, it could be a bug or is at least be suitable for the FAQ.
Minimal example
I have set up a simple example at https://github.com/matthiasstock/revapi-issue. This example contains:
./mvnw install
it as the "old" 0.0.1 version./mvnw install
it as the "new" 0.0.2-SNAPSHOT versionrevapi-maven-plugin
configuration for reproductionManual tests
./mvnw clean revapi:check
for various plugin configurations that should ignore the following problem:Expected Behavior
The configuration under
analysisConfiguration
and withinrevapi-docs-new.json
works.Actual Behavior
Only the configuration under
analysisConfiguration
works.Remarks
The other two JSON files merely document other approaches and are not essential to this issue.
The text was updated successfully, but these errors were encountered: