Coder Social home page Coder Social logo

shawjef3 / gradle-mima-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from borissmidt/gradle-mima-plugin

0.0 0.0 1.0 134 KB

a gradle plugin for the scala mima tool to check binary compatibility. https://github.com/lightbend/mima, for maven https://github.com/kelnos/mima-maven-plugin

License: Other

Shell 1.68% Java 62.16% Scala 36.16%

gradle-mima-plugin's Introduction

This is a fork of https://github.com/borissmidt/gradle-mima-plugin with updated dependencies and some changes to allow additional configuration.

Adds mima dependency check to your gradle project it looks for the previous version by looking at the git version tags:

mima {
    direction = "backward"  can be "forward" , "backward" or "both"
    //makes the task fail if there was an error detected    
    failOnException = false 
    //the versions to check, defaults to the latest version detected in the git tag.
    compareToVersions = ["0.0.0", "0.1.0"]
  
    // Use this if the previous version had a different group.
    oldGroup = 'com.example'
    // Use this if the previous version had a different artifact name.
    oldName = 'oldname'

  // You can manually pick how to extract versions from tags.
  final Pattern pattern = Pattern.compile("version(\\d+\\.\\d+\\.\\d+)")
  tagFilter = { String tag ->
    final Matcher match = pattern.matcher(tag)
    return java.util.Optional.ofNullable(match.matches() ? match.group(1) : null)
  } as java.util.function.Function
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.