GithubHelp home page GithubHelp logo

maven-changed-modules's Introduction

Changed Modules Maven Plugin

Adaptive enablement of Maven plugins during a build based on the changed files.

Project status

  • not released yet,
  • untested,
  • experimental

How it works

  • Collects the list of changed files, compared to a base reference. This includes changes committed to git and uncommitted local changes.
  • Alternatively the plugin can take a list of files from a provided file.
  • Computes the projects from the list of changed files, adds dependants projects.
  • Properties will be set on each project that is not in the computed set of projects to disable certain plugins. For example, the property skipTests is set to true to disable running tests for unaffected projects, or better: to only run tests for projects that have been changed and the projects that depend on projects with changed files.

Tips

  • Make sure that your CI environment has the configured base reference available.

Example CI setup

Build your proejct in two stages:

  1. Something like mvn clean install -DskipTests
  2. The following snippet will only let tests (and some other expensive tasks) not run by setting project properties (e.g. skipTest=true).
    mvn verify \
      org.projectnessie.change-projects-maven-plugin:changed-project-maven-plugin:0.1-SNAPSHOT:find
    

Configuration

See Source

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.