mirror of
https://github.com/FabricMC/fabric.git
synced 2025-04-20 19:04:44 -04:00
Add current git branch to version
Set the curse game version to 1.15
This commit is contained in:
parent
66a6b610bc
commit
34cdeba3b0
1 changed files with 9 additions and 2 deletions
11
build.gradle
11
build.gradle
|
@ -31,6 +31,13 @@ def getSubprojectVersion(project, version) {
|
|||
}
|
||||
}
|
||||
|
||||
def getBranch(){
|
||||
if (grgit == null) {
|
||||
return "unknown"
|
||||
}
|
||||
return grgit.branch.current().name
|
||||
}
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'fabric-loom'
|
||||
|
@ -197,7 +204,7 @@ dependencies {
|
|||
}
|
||||
}
|
||||
|
||||
version = Globals.baseVersion + "+" + (ENV.BUILD_NUMBER ? ("build." + ENV.BUILD_NUMBER) : "local")
|
||||
version = Globals.baseVersion + "+" + (ENV.BUILD_NUMBER ? ("build." + ENV.BUILD_NUMBER) : "local") + "-" + getBranch()
|
||||
|
||||
curseforge {
|
||||
if (project.hasProperty('curse_api_key')){
|
||||
|
@ -207,7 +214,7 @@ curseforge {
|
|||
id = '306612'
|
||||
changelog = 'A changelog can be found at https://github.com/FabricMC/fabric/commits/master'
|
||||
releaseType = 'alpha'
|
||||
addGameVersion '1.14-Snapshot'
|
||||
addGameVersion '1.15-Snapshot'
|
||||
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")) {
|
||||
displayName = "[$Globals.mcVersion] Fabric API $Globals.baseVersion build $ENV.BUILD_NUMBER"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue