Awesome Open Source
Awesome Open Source

= Revapi :toc:

image:[Build Status,link=] image:[Code Coverage,link=] image:[Gitter Chat,link=][Revapi] is a tool for API analysis and change tracking.

INFO: Revapi requires Java8 update 40 (1.8.0_40) or later to run. Older versions may produce wrong results.

== Summary

While Revapi is designed to be extensible and in theory should support API checks in other languages than Java (not just programming languages but anything that can be decomposed to a tree structure) the only extension in existence today is the Java API checker.

The main distinguishing features of the Java API checker include:

  • large number of[API checks] ** categorized by their influence on source, binary and "semantical" compatibility
  • support for computing the API "surface" by tracking usages of types across the checked library and also its dependencies (ability to report type "leakage" from deps)
  • support for Java8 constructs (default methods in particular)
  • powerful filtering stuff to check and reclassification of found problems
  • ability to filter by annotation presence
  • Maven plugin automatically includes depenendcies in the check

Other features:

== Building

This is a maven project, so to build you simply:

mvn install

== Usage

Revapi can be invoked in a couple of ways. It can be used as a standalone program, as a maven plugin or it can also be embedded in your application and used as a library.

=== Standalone[Download] the standalone distribution zip and

unzip cd revapi-XXX-standalone ./

Read the usage info and go.

=== Maven


org.revapi revapi-maven-plugin ... org.revapi revapi-java ... com.acme my-extension ... ... ... api-check check ... ... ... ... ----

=== Gradle

There is an external Gradle plugin available for Revapi,

=== Embedding


Revapi revapi = Revapi.builder().withAllExtensionsFromThreadContextClassLoader().build();

AnalysisContext analysisContext = AnalysisContext.builder() .withOldAPI(API.of(...)) .withNewAPI(API.of(...)) .withConfigurationFromJSON("json").build();


== Extending Revapi

See the[site] for more info.

== Getting in touch

Twitter::[@revapi_org] IRC:: #revapi @ freenode Mailing list::!forum/revapi, [email protected] Issues:: Code::

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
java (30,381
api (1,618
maven-plugin (50
compatibility (23

Find Open Source By Browsing 7,000 Topics Across 59 Categories