Update shadow, add commons-codec to shaded uber for forge

This commit is contained in:
Mike Primm 2021-12-03 10:28:12 -06:00
parent 76557bf312
commit e6cfaad851
2 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,5 @@
plugins {
id "com.github.johnrengelman.shadow" version "2.0.4"
id "com.github.johnrengelman.shadow" version "7.1.0"
id 'java'
id 'maven-publish'
}

View File

@ -33,8 +33,9 @@ project.archivesBaseName = "${project.archivesBaseName}-forge-1.18"
dependencies {
implementation project(path: ":DynmapCore", configuration: "shadow")
implementation project(path: ':DynmapCoreAPI')
implementation "commons-codec:commons-codec:1.15"
minecraft 'net.minecraftforge:forge:1.18-38.0.8'
minecraft 'net.minecraftforge:forge:1.18-38.0.12'
}
processResources
@ -51,7 +52,10 @@ processResources
shadowJar {
dependencies {
include(dependency(':DynmapCore'))
include(dependency("commons-codec:commons-codec:"))
}
relocate('org.apache.commons.codec', 'org.dynmap.forge_1_18.commons.codec')
archiveName = "Dynmap-${parent.version}-forge-1.18.jar"
destinationDir = file '../target'
}