Skip to content

[feat] Added library block to UMC setup#5

Closed
poizzy wants to merge 6 commits into
TeamOpenIndustry:masterfrom
poizzy:master
Closed

[feat] Added library block to UMC setup#5
poizzy wants to merge 6 commits into
TeamOpenIndustry:masterfrom
poizzy:master

Conversation

@poizzy

@poizzy poizzy commented Feb 21, 2026

Copy link
Copy Markdown

This PR adds the possibility to add libraries for UMC submods directly in the umc.json. Highly inspired by TeamOpenIndustry/UniversalModCore#204. Before this PR is mergeable, we need to enable the shade plugin in the build.gradle template, and add some aditional variable tags.

Usage:

"mod": {
    //...
    "libraries": [
        {
            "repository": "maven repositor like eg: https://repo1.maven.org/maven2/",
            "artifact": "groovy short form like: com.google.code.gson:gson:2.13.2"
            "path": "path to a jar file, alternative to repository + artifact"
            "type": "shade/implementation/runtime/(compile)"
            "relocate": "old.path | new.path"
            "onlyIn": ["1.12.2-forge", "1.17.1-forge"]
        }
    ]
}

Comment thread src/main/java/cam72cam/universalmodcore/Config.java Outdated
@Goldenfield192

Copy link
Copy Markdown
Member

Closed due to the scalablity of template.geadle and completion of TeamOpenIndustry/UniversalModCore#204

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants