Skip to content

Commit

Permalink
Bump version (#98)
Browse files Browse the repository at this point in the history
Fix release task
  • Loading branch information
PotatoPresident authored Sep 23, 2021
1 parent 1561a46 commit 52e955b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 21 deletions.
42 changes: 22 additions & 20 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ plugins {
}

var release = false
val props = properties

val modId: String by project
val modName: String by project
Expand Down Expand Up @@ -225,45 +226,46 @@ curseforge {
mainArtifact(tasks["remapJar"])

relations(closureOf<CurseRelation> {
requiredDependency("fabric-api")
requiredDependency("fabric-language-kotlin")
props["cfReqDeps"].toString().split(",").forEach {
requiredDependency(it)
}
})
})

options(closureOf<Options> {
debug = true
forgeGradleIntegration = false
})
}
}

tasks {
register<TaskModrinthUpload>("publishModrinth") {
onlyIf { System.getenv().contains("MODRINTH_TOKEN") }
dependsOn("build")

val modrinth = task<TaskModrinthUpload>("publishModrinth") {
onlyIf { System.getenv().contains("MODRINTH_TOKEN") }

group = "upload"
group = "upload"

token = System.getenv("MODRINTH_TOKEN")
token = System.getenv("MODRINTH_TOKEN")

projectId = "dohojEfz"
versionType = VersionType.RELEASE
version = modVersion
changelog = System.getenv("CHANGELOG")
projectId = "LVN9ygNV"
versionType = VersionType.RELEASE
version = modVersion
changelog = System.getenv("CHANGELOG")

addGameVersion(libs.versions.minecraft.get())
addLoader("fabric")
addGameVersion(libs.versions.minecraft.get())
addLoader("fabric")

// FLK
addDependency("Ha28R6CL", DependencyType.REQUIRED)
// FAPI
addDependency("P7dR8mSH", DependencyType.REQUIRED)
props["mrReqDeps"].toString().split(",").forEach {
addDependency(it, DependencyType.REQUIRED)
}

uploadFile = tasks["remapJar"]
uploadFile = remapJar.get().archiveFile.get()
}
}

tasks.register("release") {
release = true
dependsOn("curseforge", modrinth)
dependsOn("curseforge", "publishModrinth")
}

detekt {
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ kotlin.code.style=official
org.gradle.jvmargs=-Xmx1G

# Mod Properties
modVersion = 1.1.0
modVersion = 1.1.1
mavenGroup = com.github.quiltservertools
modId = ledger
modName = Ledger

cfReqDeps = fabric-api,fabric-language-kotlin
# FAPI, FLK
mrReqDeps = c1p9mmFg,1qsZV7U7
1 change: 1 addition & 0 deletions libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fabric-api = "0.40.1+1.17"

# Kotlin
kotlin = "1.5.21"
# Also modrinth version in gradle.properties
fabric-kotlin = "1.6.3+kotlin.1.5.21"

fabric-permissions = "0.1-SNAPSHOT"
Expand Down

0 comments on commit 52e955b

Please sign in to comment.