Skip to content

Commit

Permalink
Actually I am very stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
CaelTheColher committed Feb 14, 2023
1 parent 585c909 commit 7734fcd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id "org.ajoberstar.grgit" version "5.0.0" apply false
id "com.matthewprenger.cursegradle" version "1.4.0" apply false
id "com.modrinth.minotaur" version "2.+" apply false
id "org.jetbrains.kotlin.jvm" version "1.8.0" apply false
}

architectury {
Expand Down
2 changes: 1 addition & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id "org.jetbrains.kotlin.jvm" version "1.8.0"
id "org.jetbrains.kotlin.jvm"
}

architectury {
Expand Down
16 changes: 8 additions & 8 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id "org.jetbrains.kotlin.jvm" version "1.8.0"
id "org.jetbrains.kotlin.jvm"
id "org.ajoberstar.grgit"
id "com.matthewprenger.cursegradle"
id "com.modrinth.minotaur"
Expand Down Expand Up @@ -98,16 +98,16 @@ publishing {

def DISPLAY_NAME = "[Fabric ${minecraft_version}] Capes ${mod_version.split('\\+')[0]}"

static String getChangelog() {
"A changelog can be found at https://github.com/CaelTheColher/Capes"
static def getChangeLog() {
return "A changelog can be found at https://github.com/CaelTheColher/Capes"
}

curseforge {
String token = System.getenv("CURSEFORGE_API_KEY")
apiKey = token == null || token.isEmpty() ? "unset" : token
project {
id = curseforge_id
changelog = getChangelog()
changelog = getChangeLog()
releaseType = "release"
addGameVersion("Fabric")
addGameVersion(minecraft_version)
Expand All @@ -131,11 +131,11 @@ modrinth {
projectId = modrinth_id
versionNumber = mod_version
versionName = DISPLAY_NAME
versionType = "release"
changelog = getChangelog()
uploadFile = remapJar
gameVersions = [minecraft_version]
loaders = ["fabric"]
loaders = ['fabric']
versionType = "release"
changelog = getChangeLog()
dependencies {
required.project("fabric-api")
required.project("fabric-language-kotlin")
Expand Down Expand Up @@ -174,7 +174,7 @@ tasks.register('github') {

def releaseBuilder = new GHReleaseBuilder(repository, version as String)
releaseBuilder.name(DISPLAY_NAME)
releaseBuilder.body(getChangelog())
releaseBuilder.body(getChangeLog())
releaseBuilder.commitish(getBranch())

def ghRelease = releaseBuilder.create()
Expand Down
16 changes: 8 additions & 8 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {

plugins {
id "com.github.johnrengelman.shadow" version "7.1.2"
id "org.jetbrains.kotlin.jvm" version "1.8.0"
id "org.jetbrains.kotlin.jvm"
id "org.ajoberstar.grgit"
id "com.matthewprenger.cursegradle"
id "com.modrinth.minotaur"
Expand Down Expand Up @@ -118,8 +118,8 @@ publishing {

def DISPLAY_NAME = "[Forge ${minecraft_version}] Capes ${mod_version.split('\\+')[0]}"

static String getChangelog() {
"A changelog can be found at https://github.com/CaelTheColher/Capes"
static def getChangeLog() {
return "A changelog can be found at https://github.com/CaelTheColher/Capes"
}

curseforge {
Expand All @@ -128,7 +128,7 @@ curseforge {
String gameVersion = minecraft_version
project {
id = curseforge_id
changelog = getChangelog()
changelog = getChangeLog()
releaseType = "beta"
addGameVersion("Forge")
addGameVersion(gameVersion)
Expand All @@ -150,11 +150,11 @@ modrinth {
projectId = modrinth_id
versionNumber = mod_version
versionName = DISPLAY_NAME
versionType = "release"
changelog = getChangelog()
uploadFile = remapJar
gameVersions = [minecraft_version]
loaders = ["forge"]
loaders = ['forge']
versionType = "release"
changelog = getChangeLog()
dependencies {
required.project("kotlin-for-forge")
}
Expand Down Expand Up @@ -191,7 +191,7 @@ tasks.register('github') {

def releaseBuilder = new GHReleaseBuilder(repository, version as String)
releaseBuilder.name(DISPLAY_NAME)
releaseBuilder.body(getChangelog())
releaseBuilder.body(getChangeLog())
releaseBuilder.commitish(getBranch())

def ghRelease = releaseBuilder.create()
Expand Down

0 comments on commit 7734fcd

Please sign in to comment.