Skip to content

Commit

Permalink
build scripts updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Jan 23, 2022
1 parent 7dfaaf0 commit 265aa63
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/matrix_includes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"branch": "1.14.4",
"cf_game_versions": "modloader:fabric,minecraft-1-14:1.14.4"
},
{
"branch": "1.15.2",
"cf_game_versions": "modloader:fabric,minecraft-1-15:1.15.2"
Expand Down
18 changes: 14 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ repositories {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

String versionSuffix = ''
if (System.getenv("BUILD_RELEASE") != "true") {
versionSuffix += '-SHAPSHOT'
}
String buildNumber = System.getenv("BUILD_ID")
if (buildNumber != null) {
versionSuffix += '+build.' + buildNumber
}
String fullModVersion = project.mod_version + versionSuffix

archivesBaseName = project.archives_base_name
version = 'mc' + project.minecraft_version + '-v' + project.mod_version
version = 'mc' + project.minecraft_version + '-v' + fullModVersion
group = project.maven_group

dependencies {
Expand All @@ -40,7 +50,7 @@ dependencies {
// https://www.curseforge.com/minecraft/mc-mods/item-scroller/files
modImplementation "curse.maven:item-scroller-242064:2880360" // itemscroller-fabric-1.15.2-0.15.0-dev.20200212.183513.jar

// https://www.curseforge.com/minecraft/mc-mods/litematica/files/2957593
// https://www.curseforge.com/minecraft/mc-mods/litematica/files
modImplementation "curse.maven:litematica-308892:2957593" // litematica-fabric-1.15.2-0.0.0-dev.20200515.184506.jar


Expand All @@ -52,10 +62,10 @@ dependencies {
}

processResources {
inputs.property "version", project.version
inputs.property "version", fullModVersion

filesMatching("fabric.mod.json") {
expand "version": project.mod_version
expand "version": fullModVersion
}
}

Expand Down

0 comments on commit 265aa63

Please sign in to comment.