User Tools

Site Tools


tutorial:cursegradle

Differences

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

Link to this comparison view

Next revision
Previous revision
tutorial:cursegradle [2019/05/12 11:22] – created asietutorial:cursegradle [2021/04/06 20:20] (current) – Better java versions florens
Line 2: Line 2:
  
 To familiarize yourself with CurseGradle, please read the [[https://github.com/matthewprenger/CurseGradle/wiki|project's official wiki]]. To familiarize yourself with CurseGradle, please read the [[https://github.com/matthewprenger/CurseGradle/wiki|project's official wiki]].
 +
 +Note: in recent versions, it seems that the changes outlined in this article are not necessary and perhaps even harmful. 
  
 ===== Fabric-specific changes ===== ===== Fabric-specific changes =====
  
-(Note: Last updated for Loom 0.2.3.)+(Note: Last updated for Loom 0.2.5.)
  
-The additions necessary for usage with Fabric have been highlighted in green.+The additions necessary for usage with Fabric have been highlighted in green. If you are using Loom 0.2.5 ''remapJar.output'' should be just ''remapJar'' instead.
  
 {{:tutorial:cursegradle_changes.png?nolink|}} {{:tutorial:cursegradle_changes.png?nolink|}}
Line 14: Line 16:
  
   * ''%%afterEvaluate { ... }%%'' - Loom's remapJar tweaks currently happen after evaluation, and as such remapJar.output can only be read then,   * ''%%afterEvaluate { ... }%%'' - Loom's remapJar tweaks currently happen after evaluation, and as such remapJar.output can only be read then,
-  * ''%%mainArtifact(remapJar.output)%%'' - the primary artifact submitted to CurseForge should be the output of remapJar, that is the remapped (production-ready) mod .JAR file,+  * ''%%mainArtifact(remapJar)%%'' (or ''mainArtifact(remapJar.output)'' for Loom 0.2.4 and earlier) - the primary artifact submitted to CurseForge should be the output of remapJar, that is the remapped (production-ready) mod .JAR file,
   * ''%%uploadTask.dependsOn(remapJar)%%'' - make sure that the CurseForge upload task only runs once the remapped JAR has been built,   * ''%%uploadTask.dependsOn(remapJar)%%'' - make sure that the CurseForge upload task only runs once the remapped JAR has been built,
   * ''%%forgeGradleIntegration = false%%'' - as you're not using ForgeGradle, that specific integration has to be disabled.   * ''%%forgeGradleIntegration = false%%'' - as you're not using ForgeGradle, that specific integration has to be disabled.
 +
 +
 +You can set Modloader to Fabric and add supported Java versions with addGameVersion.
 +<code>
 +addGameVersion "Fabric" //Set Modloader to Fabric
 +addGameVersion "Java 8"
 +addGameVersion "Java 11"
 +</code>
 +
 +
 +
 +
 +
tutorial/cursegradle.1557660133.txt.gz · Last modified: 2019/05/12 11:22 by asie