Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotori316 committed Dec 2, 2023
1 parent b4780cd commit 47d2230
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 7 additions & 6 deletions forge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
import com.kotori316.plugin.cf.CallVersionCheckFunctionTask
import com.kotori316.plugin.cf.CallVersionFunctionTask

import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter

plugins {
id "scala"
id "net.minecraftforge.gradle" version "[6.0.16,6.2)"
Expand All @@ -12,7 +13,7 @@ plugins {
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "2.+"
id "com.github.johnrengelman.shadow" version "7.1.2"
id("com.kotori316.plugin.cf") version ("1.+")
id("com.kotori316.plugin.cf") version("1.+")
}

version = "${libs.versions.scala3.get()}-build-${project.build_number}"
Expand Down Expand Up @@ -161,7 +162,7 @@ curseforge {
project {
id = "320926"
changelogType = "markdown"
changelog = getChangelog()
changelog = createChangelog()
releaseType = "release"
addGameVersion("1.20.2")
addGameVersion("Forge")
Expand All @@ -188,7 +189,7 @@ modrinth {
]
gameVersions = ["1.20.2"]
loaders = ["forge"]
changelog = getChangelog()
changelog = createChangelog()
debugMode = RELEASE_DEBUG
}

Expand Down Expand Up @@ -263,7 +264,7 @@ tasks.withType(AbstractPublishToMaven).configureEach {
}
}

def getChangelog() {
def createChangelog() {
String t = """\
For Minecraft ${libs.versions.minecraft.get()}
Expand Down
15 changes: 8 additions & 7 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
import com.kotori316.plugin.cf.CallVersionCheckFunctionTask
import com.kotori316.plugin.cf.CallVersionFunctionTask

import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter

plugins {
id "scala"
id "net.neoforged.gradle.userdev" version "[7.0.26, 8.0)"
Expand All @@ -11,7 +12,7 @@ plugins {
id "com.matthewprenger.cursegradle" version "1.4.0"
id "com.modrinth.minotaur" version "2.+"
id "com.github.johnrengelman.shadow" version "7.1.2"
id("com.kotori316.plugin.cf") version ("1.+")
id("com.kotori316.plugin.cf") version("1.+")
}

version = "${libs.versions.scala3.get()}-build-${project.build_number}"
Expand Down Expand Up @@ -42,7 +43,7 @@ runs {
}

dependencies {
implementation ("net.neoforged:neoforge:${libs.versions.neoforge.get()}")
implementation("net.neoforged:neoforge:${libs.versions.neoforge.get()}")

// https://mvnrepository.com/artifact/org.scala-lang/scala-library
implementation(libs.scala2)
Expand Down Expand Up @@ -124,7 +125,7 @@ curseforge {
project {
id = "320926"
changelogType = "markdown"
changelog = getChangelog()
changelog = createChangelog()
releaseType = "release"
addGameVersion("1.20.2")
addGameVersion("NeoForge")
Expand Down Expand Up @@ -152,7 +153,7 @@ modrinth {
]
gameVersions = ["1.20.2"]
loaders = ["neoforge"]
changelog = getChangelog()
changelog = createChangelog()
debugMode = RELEASE_DEBUG
}

Expand Down Expand Up @@ -227,7 +228,7 @@ tasks.withType(AbstractPublishToMaven).configureEach {
}
}

def getChangelog() {
def createChangelog() {
String t = """\
For Minecraft ${libs.versions.minecraft.get()}
Expand Down

0 comments on commit 47d2230

Please sign in to comment.