Skip to content

Commit

Permalink
add enforcer rules to protect releases
Browse files Browse the repository at this point in the history
fixes #99
fixes #100
  • Loading branch information
McFoggy committed Nov 5, 2018
1 parent 427b0dc commit 9d223d3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,19 @@
<rules>
<requireReleaseDeps />
<requireReleaseVersion />
<requireJavaVersion>
<version>[1.8.0, 9)</version>
</requireJavaVersion>
<requireProperty>
<property>jgitver.dirty</property>
<regex>false</regex>
<regexMessage>You cannot release in a dirty state</regexMessage>
</requireProperty>
<requireProperty>
<property>jgitver.branch_name</property>
<regex>^$|master</regex>
<regexMessage>You must release from master or from a detached HEAD, current branch is '${jgitver.branch_name}'</regexMessage>
</requireProperty>
</rules>
<fail>true</fail>
</configuration>
Expand Down

0 comments on commit 9d223d3

Please sign in to comment.