GithubHelp home page GithubHelp logo

q3769 / semver-maven-plugin Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 0.0 410 KB

A Maven Plugin to update local POM version in compliance with Semantic Versioning 2.0.0

Home Page: https://q3769.github.io/semver-maven-plugin/

License: MIT License

Java 100.00%
continious-integration continuous-delivery maven maven-plugin semver version-control configuration-as-code pipeline-as-code build-automation version-management

semver-maven-plugin's Introduction

semver-maven-plugin's People

Contributors

dependabot[bot] avatar q3769 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

semver-maven-plugin's Issues

Plugin does not work with multi-modules projects

Steps to reproduce:

  • create a maven project with two modules (submodule1 and submodule2) with versions set to 1.0.0-SNAPSHOT
  • obviously each sub-module must reference the parent
  • submodules can use each other as a dependency using <version>${project.version}</version>
  • run: mvn io.github.q3769:semver-maven-plugin:20220509.0.1:increment-minor -Dsnapshot=true -DprocessModule=true
  • error: Failed to execute goal io.github.q3769:semver-maven-plugin:20220509.0.1:increment-minor (default-cli) on project submodule1: Project version is inherited from parent.

Although the poms are updated properly, the plugin still fails.

However, passing -N option to the maven build seems to fix the problem.

enable differentiation / more granular control of managing versions of parent & submodules

While bumping my parent project for a next iteration it also bumps the version for all submodules, while I only want to modify a single one. It would be convenient if it would be able to either only bump the parent or a set of sub-modules by inclusion/exclusion.

The plugin is wrongfully updating all submodules with the same change while I only desire the parent version to be set to, I think it is not correct to assume that parent & sub module versions always simultaneously change.

Another good addition would be to support the ci/cd friendly properties, like $revision

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.