Skip to content

Commit

Permalink
feat: add tagRegex option
Browse files Browse the repository at this point in the history
  • Loading branch information
s4heid committed Feb 2, 2021
1 parent bef468b commit 30810ce
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/java/team/yi/gradle/plugin/BaseTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public abstract class BaseTask extends DefaultTask {
private VersionStrategy strategy;
private Boolean forceNextVersion;
private String lastVersion;
private String tagRegex;
private String preRelease;
private String buildMetaData;
private String majorTypes;
Expand Down Expand Up @@ -244,6 +245,17 @@ public void setLastVersion(final String lastVersion) {
this.lastVersion = lastVersion;
}

@Input
@Optional
public String getTagRegex() {
return this.tagRegex;
}

@Option(option = "tagRegex", description = "Regex that matches all tags to be considered. Default matches all semver compliant tags.")
public void setTagRegex(final String tagRegex) {
this.tagRegex = tagRegex;
}

@Input
@Optional
public String getPreRelease() {
Expand Down Expand Up @@ -380,6 +392,7 @@ protected final GitlogSettings gitlogSettings() {
.forceNextVersion(this.forceNextVersion)

.lastVersion(lastVersion)
.tagRegex(tagRegex)
.preRelease(this.preRelease)
.buildMetaData(this.buildMetaData)
.majorTypes(this.majorTypes)
Expand Down

0 comments on commit 30810ce

Please sign in to comment.