Skip to content

Commit 51cce40

Browse files
authored
Merge pull request #1 from tildejustin/1.14
change build naming, bump version for release
2 parents 36bd0e5 + 58cc9bb commit 51cce40

3 files changed

Lines changed: 3 additions & 25 deletions

File tree

build.gradle

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,6 @@
11
plugins {
22
id 'fabric-loom' version '0.8-SNAPSHOT'
33
id 'maven-publish'
4-
id 'org.ajoberstar.grgit' version '4.1.0'
5-
}
6-
7-
def getVersionMetadata() {
8-
// CI builds version numbers
9-
def build_id = System.getenv("RELEASE_TAG")
10-
if (build_id != null) {
11-
return build_id
12-
}
13-
14-
// Development builds
15-
if (grgit == null) {
16-
return "dev"
17-
}
18-
19-
// Named development builds
20-
def id = grgit.head().abbreviatedId
21-
if (!grgit.status().clean) {
22-
id += "-dirty"
23-
}
24-
25-
return "rev.${id}"
264
}
275

286
/*
@@ -35,7 +13,7 @@ sourceCompatibility = JavaVersion.VERSION_1_8
3513
targetCompatibility = JavaVersion.VERSION_1_8
3614

3715
archivesBaseName = "${project.mod_id}-${project.minecraft_version}"
38-
version = "${getVersionMetadata()}"
16+
version = project.mod_version
3917
group = project.maven_group
4018

4119
dependencies {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ minecraft_version=1.14.4
77
yarn_mappings=1.14.4+build.18
88
loader_version=0.13.3
99
# Mod Properties
10-
mod_version=1.0.0-alpha
10+
mod_version=1.0.0
1111
maven_group=ca.spottedleaf.starlight
1212
mod_id=starlight
1313
# Dependencies

src/main/resources/fabric.mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"schemaVersion": 1,
3-
"id": "${archivesBaseName}",
3+
"id": "${mod_id}",
44
"version": "${version}",
55
"name": "Starlight",
66
"description": "Rewrites the light engine to fix lighting performance and lighting errors",

0 commit comments

Comments
 (0)