Comments (6)
That is a good idea.
Currently, I think revapi could get you half way there.. You can "externalize" your API changes into a separate revapi configuration file (you'd configure revapi along the lines of http://revapi.org/modules/revapi-maven-plugin/examples/multi-file-configuration.html and put your API changes in a separate config file like https://github.com/revapi/revapi/blob/5ccf3788a09a015b927fea97abe14e7265642ddc/revapi-java-spi/api-changes.json). You could then write a simple script that would parse them and create a text report.
The revapi:report
goal is very rudimentary right now but I think it could or maybe even should be used for this purpose. I'll think about some way we could get there.
Btw. I'm not very experienced in writing maven plugins and even less in writing reporting plugins. It'd be great if you could share some experience with writing or using them so that the end result is usable.
from revapi.
The NPE comes from the fact that for the report to work, you need to have your artifacts built. So I hope that mvn clean package revapi:report
should work.
The error reporting could be improved, I admit ;)
from revapi.
FTR I'm hesitating between 2 routes:
- Implementing http://jira.xwiki.org/browse/XCOMMONS-947
- Continuing in the direction of this issue, i.e.
** Generate an aggregated plain text report for all modules (this issue)
** Publish it to an xwiki.org page using some maven http plugin (or an ant task) using the XWiki REST API
This other route is probably better since it:
- Keeps the config versioned in the SCM, close to the code
- Doesn't have any offline issue and xwiki can be built and have backward-compat checks done while offline
from revapi.
I've stopped hesitating, this is the best way.
from revapi.
Btw. I'm not very experienced in writing maven plugins and even less in writing reporting plugins. It'd be great if you could share some experience with writing or using them so that the end result is usable.
What I'd do:
- In the check mojo:
** Add a mojo parameter to configure a file where to also output the violations. If this file already exists, there could a config option to append to it, or replace it. This would allow to have all violations in a single file.
** Add a mojo parameter to ignore some excludes from the revapi configuration. Since you consider config as a black box from the POV of the maven plugin, you'd need to add an option in the java api of revapi for that I guess. Now this parameter would need to explicit mention which path in the json to ignore (since we want to not ignore the default excludes we have in XWiki for example ;)).
** The user would execute the check mojo with a single location specified and with ignoring the custom excludes in order to generate an output for the expected violations. - In the report mojo:
** Add a parameter to specify the location of a violation output file (the one generated from the check mojo). This would be the input for the report mojo
** Add a parameter to specify which reports to generate: html, text
WDYT?
from revapi.
I think this is doable now with report-aggregate
goal and a custom template for text reporter configured to append to output.
from revapi.
Related Issues (20)
- Possibly false-positive java.class.externalClassExposedInAPI HOT 4
- Version format check is too restrictive HOT 4
- Be able to substitute artifacts based on some pattern to handle the XWiki legacy strategy HOT 5
- Making a public constructor protected in an abstract class should not be reported as breakage HOT 2
- Maven site for revapi fails miserably
- Revapi produces inconsistent results
- Enforcing criticality HOT 2
- Running into an endless Loop at org.jvnet.hudson HOT 3
- Infinite loop in differences HOT 2
- externalClassExposedInAPI in dependencies ? HOT 15
- "Invalid element" when upgrading to revapi-java 0.27.0 HOT 2
- Potential NullPointerException in ClasspathScanner$Scanner HOT 5
- Add Concept for String or Pattern Match
- Ability to Enforce TreeFilter Ordering HOT 1
- revapi dependency org.apache.logging.log4j:log4j-core has multiple CVE against it
- how could a enum class be excluded from java.field.enumConstantOrderChanged? HOT 4
- Fix warnings reported by Maven when using the Revapi plugin
- Class visibility reduction from `public` to `package` is reported as `java.class.removed` in latest version
- Plugin breaks in Maven4 HOT 2
- update of standalone or reporting-text ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from revapi.