Skip to content

Commit

Permalink
chore: add minotaur gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Jul 24, 2024
1 parent 6e24de3 commit a692f75
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!-- modrinth_exclude.start -->
# ThreadTweak

<!-- modrinth_exclude.end -->
> Improve and tweak Minecraft CPU scheduling (again!)
[![github](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/github_vector.svg)](https://github.com/skywardmc/threadtweak)
Expand Down
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id "com.modrinth.minotaur" version "2.+"
}

version = "${project.minecraft_version}-${project.mod_version}"
Expand Down Expand Up @@ -51,3 +52,19 @@ jar {
rename { "${it}_${project.base.archivesName.get()}" }
}
}

// https://github.com/modrinth/minotaur
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "threadtweak"
versionNumber = "${project.mod_version}+mc${project.minecraft_version}"
versionName = "ThreadTweak ${project.mod_version}"
uploadFile = jar
syncBodyFrom = project.file("README.md").text
dependencies {
required.project "fabric-api"
optional.project "modmenu"
}
}

tasks.modrinth.dependsOn(tasks.modrinthSyncBody)

0 comments on commit a692f75

Please sign in to comment.