covers1624/WorkspaceTool

Add ability to load other mappings

Opened this issue · 1 comments

Add the ability to load other mappings (specificity parchment) into the workspace

Could be added to the framework block

framework(Forge117) {
        ...
        mappings_channel = 'parchment'
        mappings_version = '1.18.2-2022.07.03-1.19'
        ...
}

Notes:
settings.gradle:
Add maven { url 'https://maven.parchmentmc.org' } bellow forge repo

build.gradle:
Add id 'org.parchmentmc.librarian.forgegradle' version '1.+' apply false bellow id 'net.minecraftforge.gradle.patcher' line
Add apply plugin: 'org.parchmentmc.librarian.forgegradle' after each use of apply plugin: 'net.minecraftforge.gradle.patcher'

Replace MAPPING_CHANNEL = 'official' with MAPPING_CHANNEL = 'parchment'
Replace MAPPING_VERSION = '(.*)' with MAPPING_VERSION = '${parchment_version}-$1'