build: include version (trimmed) in build output

This commit is contained in:
əlemi 2023-02-07 02:36:47 +01:00
parent 6e2fec7970
commit 93838f17ee
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -19,8 +19,10 @@ apply plugin: 'maven-publish'
apply plugin: "com.palantir.git-version" apply plugin: "com.palantir.git-version"
version = gitVersion() version = gitVersion()
group = 'co.fantabos.bscv' group = 'ftbsc'
archivesBaseName = 'boscovicino' archivesBaseName = 'bscv'
def shortVersion = version.split('-')[0]
// Minecraft and Forge versions // Minecraft and Forge versions
def minecraftVersion = '1.16.5' def minecraftVersion = '1.16.5'
@ -90,7 +92,7 @@ dependencies {
} }
jar { jar {
archiveName = "${jar.baseName}.${jar.extension}" archiveName = "${jar.baseName}-${shortVersion}.${jar.extension}"
manifest { manifest {
attributes([ attributes([
"Specification-Title": "bscv", "Specification-Title": "bscv",