File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
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:8.3.9 " )
26+ implementation(" com.gradleup.shadow:shadow-gradle-plugin:9.1.0 " )
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 = listOf (project.configurations[" shade" ])
48+ configurations.set( 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
12import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
23import org.gradle.api.Project
34import org.gradle.api.component.AdhocComponentWithVariants
@@ -35,6 +36,10 @@ fun Project.applyPlatformAndCoreConfiguration() {
3536 ext[" internalVersion" ] = " $version "
3637 }
3738
39+ configure<ShadowExtension > {
40+ addShadowVariantIntoJavaComponent.set(false )
41+ }
42+
3843 configure<JavaPluginExtension > {
3944 disableAutoTargetJvm()
4045 withJavadocJar()
@@ -45,9 +50,6 @@ fun Project.applyPlatformAndCoreConfiguration() {
4550 }
4651
4752 val javaComponent = components[" java" ] as AdhocComponentWithVariants
48- javaComponent.withVariantsFromConfiguration(configurations[" shadowRuntimeElements" ]) {
49- skip()
50- }
5153
5254 val publishingExtension = the<PublishingExtension >()
5355
You can’t perform that action at this time.
0 commit comments