Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

org.revapi:revapi-reporter-text

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

org.revapi:revapi-reporter-text

Super simple Revapi reporter outputting a textual representation of the differences to a file or on standard output. Takes Freemarker templates for formatting the output.

  • 0.15.0
  • Source
  • Maven
  • Socket score

Version published
Maintainers
0
Source

= Revapi :toc:

image:https://github.com/revapi/revapi/actions/workflows/build.yml/badge.svg[Build Status, link=https://github.com/revapi/revapi/actions/workflows/build.yml] image:https://codecov.io/github/revapi/revapi/coverage.svg?branch=main[Code Coverage,link=https://codecov.io/github/revapi/revapi?branch=main]

https://revapi.org[Revapi] is a tool for API analysis and change tracking.

== 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 https://revapi.org/revapi-java/differences.html[API checks] ** categorized by their influence on source, binary and "semantic" 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)
  • powerful filtering of elements to check and reclassification of found problems
  • ability to filter by annotation presence
  • Maven plugin automatically includes dependencies 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

https://revapi.org/revapi-site/downloads.html[Download] the standalone distribution zip and

unzip revapi-XXX-standalone.zip cd revapi-XXX-standalone ./revapi.sh

Read the usage info and go.

=== Maven

[source,xml]

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

=== Gradle

The Gradle plugin available for Revapi at https://plugins.gradle.org/plugin/org.revapi.revapi-gradle-plugin and it is maintained under https://github.com/revapi/gradle-revapi

[source,kotlin]

buildscript { repositories { maven { url = uri("https://plugins.gradle.org/m2/") } } dependencies { classpath("org.revapi:gradle-revapi:x.y.z") } }

apply(plugin = "org.revapi.revapi-gradle-plugin")

=== Embedding

[source,java]

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

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

revapi.analyze(analysisContext);

== Extending Revapi

See the https://revapi.org/revapi/architecture.html[site] for more info.

== Getting in touch

Mastodon:: https://botsin.space/@revapi[+@revapi@botsin.space+] Twitter:: https://twitter.com/revapi_org[@revapi_org] Matrix:: #revapiorg:matrix.org Mailing list:: https://groups.google.com/forum/#!forum/revapi[revapi@googlegroups.com] Issues:: https://github.com/revapi/revapi/issues Code:: https://github.com/revapi/

FAQs

Package last updated on 08 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc