diff --git a/git-hooks/pre-commit.sh b/git-hooks/pre-commit.sh new file mode 100755 index 000000000..812d7edbe --- /dev/null +++ b/git-hooks/pre-commit.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +mvn -N versions:update-child-modules +git add '*/pom.xml' \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2fdfffa4f..b023895dd 100644 --- a/pom.xml +++ b/pom.xml @@ -239,7 +239,12 @@ pom import - + + org.codehaus.mojo + versions-maven-plugin + 2.7 + maven-plugin + @@ -264,6 +269,46 @@ + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M2 + + + enforce-same-version + + enforce + + + + + The reactor is not valid + + + true + + + + + + io.github.phillipuniverse + githook-maven-plugin + 1.0.0 + + + + install + + + + exec git-hooks/pre-commit.sh + + + + + +