Skip to content

Commit

Permalink
Bumped version. Added git tagging build task.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomakehurst committed Oct 11, 2023
1 parent 996a875 commit 0cfc87a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ repositories {
}

group 'org.wiremock'
version = "0.1.0"
version = "0.2.0"

allprojects {
sourceCompatibility = 11
Expand Down Expand Up @@ -171,8 +171,15 @@ project.tasks.signMainPublication.dependsOn jar

assemble.dependsOn clean, jar

task addGitTag {
doLast {
println "git tag ${version}".execute().text
println "git push origin --tags".execute().text
}
}

task release {
dependsOn clean, assemble, publishAllPublicationsToMavenRepository
dependsOn clean, assemble, publishAllPublicationsToMavenRepository, addGitTag
}

task localRelease {
Expand Down

0 comments on commit 0cfc87a

Please sign in to comment.