mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Improve version and file name
This commit is contained in:
1 parent
8ce6ec3cf4
commit
331272f146
6 files changed
+31
-10
No files matched your search
@@ -44,7 +44,11 @@ tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
minimize()
|
||||
archiveClassifier = null
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
||||
|
||||
@@ -27,5 +27,9 @@ bukkit {
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier = null
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
@@ -26,6 +26,10 @@ bukkit {
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier = null
|
||||
relocate "co.aikar.commands", "net.draycia.carbon.libs.co.aikar.commands"
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
@@ -29,5 +29,9 @@ bukkit {
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier = null
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
@@ -29,5 +29,9 @@ bukkit {
|
||||
tasks.build.dependsOn tasks.shadowJar
|
||||
|
||||
shadowJar {
|
||||
archiveClassifier = null
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
|
||||
jar {
|
||||
archiveFileName.set(project.name + "-" + project.property('projectVersion') + ".jar")
|
||||
}
|
||||
+6
-5
@@ -1,12 +1,13 @@
|
||||
/*
|
||||
* This file was generated by the Gradle 'init' task.
|
||||
*/
|
||||
plugins {
|
||||
id 'com.palantir.git-version' version '0.12.3'
|
||||
}
|
||||
|
||||
def jenkinsBuild = System.getenv("BUILD_NUMBER") ?: "0"
|
||||
ext.projectVersion = '1.0'
|
||||
def gitHash = versionDetails().gitHash
|
||||
|
||||
allprojects {
|
||||
group = 'net.draycia'
|
||||
version = '1.0-b' + jenkinsBuild
|
||||
version = project.property('projectVersion') + '-' + gitHash
|
||||
}
|
||||
|
||||
apply plugin: 'base'
|
||||
|
||||
Reference in new issue
Block a user