User Tools

Site Tools


tutorial:minotaur

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:minotaur [2022/03/02 00:12] – Fix formatting emmaffletutorial:minotaur [2022/10/22 23:48] (current) – More appropriate heading changes budavissza
Line 4: Line 4:
 This page only goes through the basics of Minotaur, and you should [[https://github.com/modrinth/minotaur|check out its GitHub documentation for further information]]. This page only goes through the basics of Minotaur, and you should [[https://github.com/modrinth/minotaur|check out its GitHub documentation for further information]].
  
-===== Basic =====+===== Basic Implementation =====
  
 First of all, add the Minotaur plugin to your plugins list in your ''build.gradle'' file as so: First of all, add the Minotaur plugin to your plugins list in your ''build.gradle'' file as so:
Line 44: Line 44:
 This is where Java ''stout'' and ''stin'' come in. This is where Java ''stout'' and ''stin'' come in.
  
-===== Absurd =====+===== Dynamic Implementation =====
  
 So, you have a basic implementation. Let's make it dynamic, allowing you to input values through the command line when the task is ran. Typically this is not done for Gradle tasks, and an environment variable or similar static source can be used for these values, but the tutorial is kept for posterity: So, you have a basic implementation. Let's make it dynamic, allowing you to input values through the command line when the task is ran. Typically this is not done for Gradle tasks, and an environment variable or similar static source can be used for these values, but the tutorial is kept for posterity:
Line 96: Line 96:
  
 To declare supported Minecraft versions and mod loaders, the ''gameVersions'' and ''loaders'' arrays must now be used. The syntax for these are pretty self-explanatory. To declare supported Minecraft versions and mod loaders, the ''gameVersions'' and ''loaders'' arrays must now be used. The syntax for these are pretty self-explanatory.
 +
 +Instead of using ''releaseType'', you must now use ''versionType''. This was actually changed in v1.2.0, but very few buildscripts have moved on from v1.1.0.
  
 Finally, dependencies are also an array which take ''ModDependency'' and/or ''VersionDependency'' (might need to be imported from ''com.modrinth.minotaur.dependencies'' package). The first parameter is the project or version ID as a string, and the second parameter is the dependency type: one of ''required'', ''optional'', or ''unsupported''. Finally, dependencies are also an array which take ''ModDependency'' and/or ''VersionDependency'' (might need to be imported from ''com.modrinth.minotaur.dependencies'' package). The first parameter is the project or version ID as a string, and the second parameter is the dependency type: one of ''required'', ''optional'', or ''unsupported''.
tutorial/minotaur.1646179941.txt.gz · Last modified: 2022/03/02 00:12 by emmaffle