Skip to content

Commit

Permalink
Configure build to omit version from jar name
Browse files Browse the repository at this point in the history
  • Loading branch information
merusso committed Feb 28, 2022
1 parent 161eb31 commit bcf069c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'com.example'
version = '0.0.1-SNAPSHOT'
version = '0.0.1'
sourceCompatibility = '17'

configurations {
Expand Down Expand Up @@ -33,6 +33,10 @@ dependencies {
testImplementation "org.testcontainers:mongodb:1.16.3"
}

// Remove version from Jar name
// Ex: note-api-0.0.1.jar -> note-api.jar
bootJar.getArchiveVersion().set('')

tasks.named('test') {
useJUnitPlatform()
}

0 comments on commit bcf069c

Please sign in to comment.