Skip to content

Commit

Permalink
Append version to artefact name (#6628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moderocky authored May 1, 2024
1 parent 0832cbb commit d911dd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ task testJar(type: ShadowJar) {

task jar(overwrite: true, type: ShadowJar) {
dependsOn checkAliases
archiveFileName = jarName ? 'Skript.jar' : jarName
archiveFileName = jarName ? 'Skript-' + project.version + '.jar' : jarName
from sourceSets.main.output
}

task build(overwrite: true, type: ShadowJar) {
archiveFileName = jarName ? 'Skript.jar' : jarName
archiveFileName = jarName ? 'Skript-' + project.version + '.jar' : jarName
from sourceSets.main.output
}

Expand Down Expand Up @@ -325,7 +325,7 @@ task githubResources(type: ProcessResources) {
task githubRelease(type: ShadowJar) {
from sourceSets.main.output
dependsOn githubResources
archiveFileName = 'Skript-github.jar'
archiveFileName = 'Skript-' + version +'.jar'
manifest {
attributes(
'Name': 'ch/njol/skript',
Expand Down

0 comments on commit d911dd3

Please sign in to comment.