tutorial:minotaur
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:minotaur [2020/12/27 18:12] – [Basic] calum6541 | tutorial:minotaur [2022/10/22 23:48] (current) – More appropriate heading changes budavissza | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Publishing your mod on Modrinth using Minotaur. ====== | + | ====== Publishing your mod on Modrinth using Minotaur ====== |
- | Minotaur is a gradle | + | Minotaur is a Gradle |
- | This page only goes through the basics of Minotaur, you should [[https:// | + | This page only goes through the basics of Minotaur, |
- | ===== Basic ===== | + | ===== Basic Implementation |
+ | First of all, add the Minotaur plugin to your plugins list in your '' | ||
- | First of all, add the minotaur plugin to your plugins list in your '' | + | < |
- | + | ||
- | < | + | |
plugins { | plugins { | ||
- | id " | + | id " |
} | } | ||
</ | </ | ||
- | Now you can create | + | Minotaur registers |
Here is a basic example. | Here is a basic example. | ||
- | < | + | < |
- | import com.modrinth.minotaur.TaskModrinthUpload | + | import com.modrinth.minotaur.dependencies.ModDependency |
- | task publishModrinth (type: TaskModrinthUpload){ | + | modrinth |
- | + | token = ' | |
- | token = ' | + | projectId = 'AABBCCDD' // The ID of your Modrinth |
- | projectId = 'modrinthModID' // The ID of your modrinth | + | versionNumber = ' |
- | versionNumber = ' | + | versionName = 'My awesome release' |
- | uploadFile = remapJar // This links to a task that builds your mod jar and sets " | + | uploadFile = remapJar // Tells Minotaur |
- | | + | |
- | | + | loaders = [' |
+ | | ||
+ | new ModDependency('P7dR8mSH', | ||
+ | ] | ||
} | } | ||
</ | </ | ||
- | Get your modrinth | + | Get your Modrinth |
- | Now when you run '' | + | Now, when you run '' |
{{https:// | {{https:// | ||
- | However, this can be limiting and sometimes repetitive to upload, you would need to edit the values every time you want to release a version. | + | However, this can be limiting and sometimes repetitive to upload, |
This is where Java '' | This is where Java '' | ||
- | ===== Advanced | + | ===== Dynamic Implementation |
- | So, you have a basic implementation. | + | So, you have a basic implementation. |
- | First of all, we would need to create a '' | + | First of all, we would need to create a '' |
- | Add a new '' | + | Add a new '' |
<code Java> | <code Java> | ||
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | ||
</ | </ | ||
- | Now, you can collect user input by simply calling the method: '' | + | Now you can collect user input by simply calling the method: '' |
- | Lets add this to our task shall we? We'll also add some more data, such as a markdown | + | Let' |
- | + | ||
- | <code Java> | + | |
- | import com.modrinth.minotaur.TaskModrinthUpload | + | |
- | + | ||
- | task publishModrinth (type: TaskModrinthUpload){ | + | |
+ | <code groovy> | ||
+ | modrinth { | ||
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | ||
- | System.out.println(" | + | System.out.println(" |
- | token = br.readLine(); | + | token = br.readLine(); |
- | projectId = '' | + | projectId = "" |
System.out.println(" | System.out.println(" | ||
versionNumber = br.readLine(); | versionNumber = br.readLine(); | ||
System.out.println(" | System.out.println(" | ||
versionName = br.readLine(); | versionName = br.readLine(); | ||
- | uploadFile = remapJar | + | uploadFile = remapJar |
System.out.println(" | System.out.println(" | ||
- | | + | |
System.out.println(" | System.out.println(" | ||
changelog = br.readLine(); | changelog = br.readLine(); | ||
- | | + | |
} | } | ||
</ | </ | ||
- | Now, when '' | + | Now, when '' |
- | Minotaur is great alongside | + | Minotaur is great alongside |
- | < | + | < |
- | task publishModrinth (type: TaskModrinthUpload){ | + | task publishToModSites |
- | | + | |
- | curseforge<id> // Begin the cursegradle task. Replacing ID with the id you set on the cursegradle config. | + | |
} | } | ||
</ | </ | ||
+ | ===== Updating from Minotaur 1.x to 2.x ===== | ||
+ | |||
+ | Minotaur 2.x introduced a few breaking changes to how your buildscript is formatted. | ||
+ | |||
+ | First, instead of registering your own '' | ||
+ | To declare supported Minecraft versions and mod loaders, the '' | ||
+ | Instead of using '' | ||
+ | Finally, dependencies are also an array which take '' |
tutorial/minotaur.1609092752.txt.gz · Last modified: 2020/12/27 18:12 by calum6541