mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 08:17:48 +00:00
Revert "Merge branch '1.7/release' into 1.7/release"
This reverts commite02c02d35c, reversing changes made toc5e8645d1a.
This commit is contained in:
1 parent
e02c02d35c
commit
d3b68032cd
1 file changed
+15
-1
+15
-1
@@ -12,6 +12,7 @@ buildscript {
|
||||
}
|
||||
dependencies {
|
||||
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
|
||||
classpath 'org.ajoberstar:gradle-git:0.10.1'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,9 +26,22 @@ apply plugin: 'maven-publish'
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
import org.ajoberstar.grgit.Grgit
|
||||
|
||||
def repo = Grgit.open(project.file('.'))
|
||||
project.ext.gitHash = repo.log().find().abbreviatedId
|
||||
def branchname = repo.branch.getCurrent().fullName
|
||||
if (branchname.contains('HEAD')) {
|
||||
branchname = System.getenv("GIT_BRANCH")
|
||||
}
|
||||
branchname = branchname.substring(branchname.lastIndexOf('/') + 1)
|
||||
|
||||
boolean dev = System.getenv("RELEASE") == null || System.getenv("RELEASE").equalsIgnoreCase("false")
|
||||
|
||||
version = "${mod_version}"
|
||||
ext.buildnumber = 0
|
||||
project.buildnumber = System.getenv('BUILD_NUMBER') == null ? "CUSTOM" : System.getenv('BUILD_NUMBER')
|
||||
|
||||
version = dev ? "${branchname}-${buildnumber}-${project.ext.gitHash}" : "${mod_version}.${buildnumber}"
|
||||
group = "team.chisel" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "Chisel"
|
||||
|
||||
|
||||
Reference in new issue
Block a user