Skip to content

Commit

Permalink
Fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Nov 19, 2023
1 parent 18bec36 commit 4c2f505
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ modrinth {
versionName = mod_build_version + " for Fabric " + minecraft_version
versionType = release_channel // can be release, beta, or alpha
uploadFile = remapJar
gameVersions.set {minecraft_version}
loaders.set {'fabric'}
gameVersions = [minecraft_version]
loaders = ['fabric']

if (changelog_file.exists()) {
def changelog_text = changelog_file.text
Expand Down
4 changes: 2 additions & 2 deletions Forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ modrinth {
versionName = mod_build_version + " for Forge " + minecraft_version
versionType = release_channel // can be release, beta, or alpha
uploadFile = jar
gameVersions.set {minecraft_version}
loaders.set {'forge'}
gameVersions = [minecraft_version]
loaders = ['forge']

if (changelog_file.exists()) {
def changelog_text = changelog_file.text
Expand Down
5 changes: 2 additions & 3 deletions NeoForge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {
id "com.modrinth.minotaur" version "2.+"
}


base.archivesName.set("${mod_name}-neoforge")
def mod_build_version = "${mod_version}.${System.getenv().BUILD_NUMBER}"

Expand Down Expand Up @@ -93,8 +92,8 @@ modrinth {
versionName = mod_build_version + " for NeoForge " + minecraft_version
versionType = release_channel // can be release, beta, or alpha
uploadFile = jar
gameVersions.set {minecraft_version}
loaders.set {'neoforge'}
gameVersions = [minecraft_version]
loaders = ['neoforge']
}

publishing {
Expand Down
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
plugins {
// Required for NeoGradle
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.7"
// Used for changelog generation
id 'net.minecraftforge.gradleutils' version '[2.1.3,)'
}

version = "${minecraft_version}-${mod_version}.${System.getenv().BUILD_NUMBER}"

ext {
mod_version = gradleutils.getFilteredTagOffsetVersion(true, '[0-9]', MC_VERSION)
}

changelog {
fromMergeBase()
}

subprojects {
apply plugin: 'java'
apply plugin: 'idea'
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Project
mod_version=3.1.0
group=com.github.glitchfiend
release_channel=beta

Expand Down

0 comments on commit 4c2f505

Please sign in to comment.