documentation:fabric_loom
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documentation:fabric_loom [2019/06/07 21:39] – [Default configuration] jamieswhiteshirt | documentation:fabric_loom [2019/06/08 14:12] – [Development environment setup] jamieswhiteshirt | ||
---|---|---|---|
Line 7: | Line 7: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
==== Default tasks ==== | ==== Default tasks ==== | ||
Line 16: | Line 16: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
+ | * '' | ||
+ | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' | ||
Line 29: | Line 31: | ||
* Applies the following plugins: '' | * Applies the following plugins: '' | ||
* Adds the following Maven repositories: | * Adds the following Maven repositories: | ||
- | * Configures '' | + | * Configures |
- | * Configures the '' | + | * Configures the '' |
+ | * Configures the '' | ||
+ | * If an '' | ||
* Adds '' | * Adds '' | ||
- | * Adds the output of '' | + | * Configures all non-test JavaCompile tasks with configurations for the Mixin annotation processor. |
- | * If an AbstractArchiveTask | + | * Configures |
+ | * Configures the '' | ||
+ | * Adds the '' | ||
+ | * Configures the '' | ||
+ | * For each MavenPublication (from the '' | ||
+ | * Manually appends dependencies to the POM for mod-augmented dependency configurations, | ||
- | Run configurations | + | All run configurations |
+ | |||
+ | The client run configuration is configured with '' | ||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
==== Publishing ==== | ==== Publishing ==== | ||
+ | |||
+ | The output of the '' | ||
+ | |||
+ | When using the '' | ||
+ | < | ||
+ | mavenJava(MavenPublication) { | ||
+ | artifact(jar.archivePath) { | ||
+ | builtBy remapJar | ||
+ | } | ||
+ | // artifact(sourcesJar) { | ||
+ | // | ||
+ | // } | ||
+ | ... | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | When publishing a project using nested jars to a Maven repository for usage in development environments, | ||
==== Useful task types ==== | ==== Useful task types ==== | ||
- | * '' | + | * '' |
- | * '' | + | * '' |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
- | ==== The development | + | ==== Development |
- | Loom does quite a few things behind the scenes to create a development environment with Minecraft. | + | Loom is designed to work out of the box by simply setting up a workspace in the user's IDE of choice. It does quite a few things behind the scenes to create a development environment with Minecraft: |
- Downloads the client and server jar from official channels for the configured version of Minecraft. | - Downloads the client and server jar from official channels for the configured version of Minecraft. | ||
Line 52: | Line 96: | ||
- Downloads the configured mappings. | - Downloads the configured mappings. | ||
- Remaps the merged jar with intermediary mappings to produce an intermediary jar. | - Remaps the merged jar with intermediary mappings to produce an intermediary jar. | ||
- | - Remaps the intermediary | + | - Remaps the merged |
- Optional: Decompiles the mapped jar to produce a mapped sources jar and linemap, and applies the linemap to the mapped jar. | - Optional: Decompiles the mapped jar to produce a mapped sources jar and linemap, and applies the linemap to the mapped jar. | ||
- Adds dependencies of Minecraft. | - Adds dependencies of Minecraft. | ||
- Downloads Minecraft assets. | - Downloads Minecraft assets. | ||
- | - Remaps | + | - Processes and includes |
==== Caches ==== | ==== Caches ==== | ||
* '' | * '' | ||
- | * '' | + | * '' |
* '' | * '' | ||
* '' | * '' |
documentation/fabric_loom.txt · Last modified: 2023/12/22 14:39 by modmuss50