Skip to content

Publish fat-jar with Gradle shadow plugin #2597

@jitpack-io

Description

@jitpack-io

From: https://stackoverflow.com/q/49698961/4562758

It's not immediately intuitive on how to publish a fat JAR to JitPack because the shadow docs don't have a section for JitPack and the JitPack docs don't have a section on fat jars.

All the docs say is that if you include maven-publish then they will execute the task publishToMavenLocal.

Normally a shadowJar fat jar is created via gradle shadowjar but the build command on JitPack is not configurable therefore we must modify our publishToMavenLocal to use shadowJar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions