Skip to content

Commit

Permalink
Revert "Remove gradle shadow"
Browse files Browse the repository at this point in the history
This reverts commit 6d415dd.
  • Loading branch information
DrexHD committed Apr 24, 2024
1 parent 36ab67c commit 86d2bf1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id 'fabric-loom' version '1.6-SNAPSHOT'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'maven-publish'
}

Expand Down Expand Up @@ -39,6 +40,17 @@ dependencies {
compileOnly("xyz.jpenilla:squaremap-api:${project.squaremap_api}")
}

shadowJar {
minimize()
archiveClassifier.set("shadow")
configurations = [project.configurations.shadow]
from sourceSets.main.output
}

remapJar {
from zipTree(shadowJar.archiveFile) dependsOn shadowJar
}

processResources {
inputs.property "version", project.version

Expand Down

0 comments on commit 86d2bf1

Please sign in to comment.