Skip to content

Commit

Permalink
Configure modrinth gradle tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
eth0net authored Jul 25, 2022
2 parents 73dd2df + f4df78f commit e103540
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 16 deletions.
34 changes: 18 additions & 16 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ val minecraftVersion: String by project
val yarnMappings: String by project
val loaderVersion: String by project
val fabricVersion: String by project
val fabricVersionId: String by project
val fabricKotlinVersion: String by project
val fabricKotlinVersionId: String by project
val mavenGroup: String by project
val modId: String by project
val modVersion: String by project
//val modVersionType: String by project
val modVersionName: String by project
val modVersionType: String by project

plugins {
id("fabric-loom")
val kotlinVersion: String by System.getProperties()
kotlin("jvm").version(kotlinVersion)
// id("com.modrinth.minotaur").version("2.+")
id("com.modrinth.minotaur").version("2.+")
}

base { archivesName.set(modId) }
Expand Down Expand Up @@ -57,19 +60,18 @@ tasks {
withSourcesJar()
}

// modrinth {
// print("Uploading to Modrinth...")
// debugMode.set(true)
// projectId.set(base.archivesName)
// versionType.set(modVersionType)
// uploadFile.set(remapJar.get())
// additionalFiles.set(listOf(remapSourcesJar.get()))
// gameVersions.add(minecraftVersion)
// dependencies {
// required.project("fabric-api")
// required.project("fabric-language-kotlin")
// }
modrinth {
token.set(System.getenv("MODRINTH_TOKEN"))
projectId.set(base.archivesName)
versionName.set(modVersionName)
versionType.set(modVersionType)
changelog.set(project.file("changelogs/$modVersion.md").readText())
uploadFile.set(remapJar.get())
additionalFiles.set(listOf(remapSourcesJar.get()))
dependencies {
required.version(fabricVersionId)
required.version(fabricKotlinVersionId)
}
// syncBodyFrom.set(rootProject.file("README.md").toString())
// print("Done!")
// }
}
}
13 changes: 13 additions & 0 deletions changelogs/1.0.0+fabric-1.19.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
First release!

**Added**:
- Open Enchant Menu screen on keypress
- Show a list of enchantments for the selected item
- Toggle the selected enchantment on click
- Highlight row for applied enchantments
- Show the current level for applied enchantments
- Change target level using buttons or keypress
- Enable scrolling in the list
- Created the Enchant Menu icon

**Full Changelog**: https://github.com/eth0net/enchant-menu/commits/v1.0.0+fabric-1.19
12 changes: 12 additions & 0 deletions changelogs/1.0.0-beta+fabric-1.19.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
First beta release!

**Added**:
- Open Enchant Menu screen on keypress
- Show a list of enchantments for the selected item
- Toggle the selected enchantment on click
- Highlight row for applied enchantments
- Show the current level for applied enchantments
- Change target level using buttons or keypress
- Enable scrolling in the list

**Full Changelog**: https://github.com/eth0net/enchant-menu/commits/v1.0.0-beta+fabric-1.19
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ yarnMappings=1.19+build.4
loaderVersion=0.14.8
# Fabric API
fabricVersion=0.57.0+1.19
fabricVersionId=Zp275COe
loomVersion=0.12-SNAPSHOT
# Kotlin
systemProp.kotlinVersion=1.7.0
fabricKotlinVersion=1.8.1+kotlin.1.7.0
fabricKotlinVersionId=D2Y5G2KO
# Mod Properties
mavenGroup=com.github.eth0net
modId=enchant-menu
modVersion=1.0.0+fabric-1.19
modVersionName=1.0.0 Fabric 1.19
modVersionType=release

0 comments on commit e103540

Please sign in to comment.