From 58a15836e6729fd1cbd6fbf89fd326a82ddee5db Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Tue, 30 Jul 2024 23:21:57 -0500 Subject: [PATCH] use bundling Jar class --- .../kotlin/xyz/wagyourtail/jvmdg/gradle/task/DowngradeJar.kt | 2 +- .../main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/ShadeJar.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/DowngradeJar.kt b/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/DowngradeJar.kt index c80f7d3e..dd15de18 100644 --- a/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/DowngradeJar.kt +++ b/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/DowngradeJar.kt @@ -5,7 +5,7 @@ package xyz.wagyourtail.jvmdg.gradle.task import org.gradle.api.file.FileCollection import org.gradle.api.file.RegularFileProperty import org.gradle.api.tasks.* -import org.gradle.jvm.tasks.Jar +import org.gradle.api.tasks.bundling.Jar import xyz.wagyourtail.jvmdg.ClassDowngrader import xyz.wagyourtail.jvmdg.compile.ZipDowngrader import xyz.wagyourtail.jvmdg.gradle.flags.DowngradeFlags diff --git a/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/ShadeJar.kt b/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/ShadeJar.kt index cc2d18d0..bae5f2d9 100644 --- a/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/ShadeJar.kt +++ b/gradle-plugin/src/main/kotlin/xyz/wagyourtail/jvmdg/gradle/task/ShadeJar.kt @@ -5,7 +5,7 @@ package xyz.wagyourtail.jvmdg.gradle.task import org.gradle.api.file.RegularFileProperty import org.gradle.api.tasks.InputFile import org.gradle.api.tasks.TaskAction -import org.gradle.jvm.tasks.Jar +import org.gradle.api.tasks.bundling.Jar import xyz.wagyourtail.jvmdg.compile.ApiShader import xyz.wagyourtail.jvmdg.gradle.JVMDowngraderExtension import xyz.wagyourtail.jvmdg.gradle.flags.ShadeFlags