diff --git a/build.gradle b/build.gradle index 6386920f..a5260f18 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,3 @@ -import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar - buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } @@ -146,7 +144,7 @@ shadowJar { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarAll(type: ShadowJar) { +task shadowJarAll(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'all' project.configurations.shadowAll.setTransitive(true); @@ -183,7 +181,7 @@ task shadowJarAll(type: ShadowJar) { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarWin32(type: ShadowJar) { +task shadowJarWin32(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'win32' project.configurations.shadowAll.setTransitive(true); @@ -207,7 +205,7 @@ task shadowJarWin32(type: ShadowJar) { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarWin64(type: ShadowJar) { +task shadowJarWin64(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'win64' project.configurations.shadowAll.setTransitive(true); @@ -231,7 +229,7 @@ task shadowJarWin64(type: ShadowJar) { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarLinux32(type: ShadowJar) { +task shadowJarLinux32(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'linux32' project.configurations.shadowAll.setTransitive(true); @@ -255,7 +253,7 @@ task shadowJarLinux32(type: ShadowJar) { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarLinux64(type: ShadowJar) { +task shadowJarLinux64(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'linux64' project.configurations.shadowAll.setTransitive(true); @@ -279,7 +277,7 @@ task shadowJarLinux64(type: ShadowJar) { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarLinuxArm64(type: ShadowJar) { +task shadowJarLinuxArm64(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'linux-arm64' project.configurations.shadowAll.setTransitive(true); @@ -303,7 +301,7 @@ task shadowJarLinuxArm64(type: ShadowJar) { relocate 'com.github.kiulian', 'red.felnull.imp.libs.com.github.kiulian' relocate 'com.alibaba.fastjson', 'red.felnull.imp.libs.com.alibaba.fastjson' } -task shadowJarOsx64(type: ShadowJar) { +task shadowJarOsx64(type: com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) { from sourceSets.main.output classifier 'osx64' project.configurations.shadowAll.setTransitive(true); @@ -469,8 +467,5 @@ if (System.getenv('curesforgeapikey') != null && "${curesfg_id}" != "0") { displayName = "${mod_name}-${mc_version}-${mod_version}-osx64" } } - options { - debug = true - } } }