File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ val properties = Properties().also { props ->
2323dependencies {
2424 implementation(gradleApi())
2525 implementation(" org.ajoberstar.grgit:grgit-gradle:5.3.2" )
26- implementation(" com.gradleup.shadow:shadow-gradle-plugin:9.1.0 " )
26+ implementation(" com.gradleup.shadow:shadow-gradle-plugin:8.3.9 " )
2727 implementation(" io.papermc.paperweight.userdev:io.papermc.paperweight.userdev.gradle.plugin:2.0.0-SNAPSHOT" )
2828 constraints {
2929 val asmVersion = " [9.7,)"
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ fun Project.applyLibrariesConfiguration() {
4545 )
4646
4747 tasks.register<ShadowJar >(" jar" ) {
48- configurations.set( listOf (project.configurations[" shade" ]) )
48+ configurations = listOf (project.configurations[" shade" ])
4949 archiveClassifier.set(" " )
5050
5151 dependencies {
Original file line number Diff line number Diff line change 1- import com.github.jengelman.gradle.plugins.shadow.ShadowExtension
21import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
32import org.gradle.api.Project
43import org.gradle.api.component.AdhocComponentWithVariants
@@ -36,10 +35,6 @@ fun Project.applyPlatformAndCoreConfiguration() {
3635 ext[" internalVersion" ] = " $version "
3736 }
3837
39- configure<ShadowExtension > {
40- addShadowVariantIntoJavaComponent.set(false )
41- }
42-
4338 configure<JavaPluginExtension > {
4439 disableAutoTargetJvm()
4540 withJavadocJar()
@@ -50,6 +45,9 @@ fun Project.applyPlatformAndCoreConfiguration() {
5045 }
5146
5247 val javaComponent = components[" java" ] as AdhocComponentWithVariants
48+ javaComponent.withVariantsFromConfiguration(configurations[" shadowRuntimeElements" ]) {
49+ skip()
50+ }
5351
5452 val publishingExtension = the<PublishingExtension >()
5553
You can’t perform that action at this time.
0 commit comments