File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,11 +59,13 @@ subprojects {
5959 inputs. file " ../gradle.properties"
6060 }
6161 afterEvaluate {
62- tasks. named(" sourcesJar" ) {
63- duplicatesStrategy = DuplicatesStrategy . INCLUDE
62+ def sourcesJar = tasks. findByName(" sourcesJar" )
63+ if (sourcesJar != null ) {
64+ sourcesJar. duplicatesStrategy = DuplicatesStrategy . INCLUDE
6465 }
65- tasks. named(" jar" ) {
66- duplicatesStrategy = DuplicatesStrategy . INCLUDE
66+ def jarTask = tasks. findByName(" jar" )
67+ if (jarTask != null ) {
68+ jarTask. duplicatesStrategy = DuplicatesStrategy . INCLUDE
6769 }
6870 }
6971}
Original file line number Diff line number Diff line change @@ -15,18 +15,6 @@ buildscript {
1515plugins {
1616 id ' multiloader-loader'
1717}
18- repositories {
19- maven {
20- name = " Forge"
21- url = uri(" https://maven.minecraftforge.net" )
22- }
23- gradlePluginPortal()
24- mavenCentral()
25- }
26- dependencies {
27- classpath " net.minecraftforge.gradle:ForgeGradle:6.0.24"
28- }
29- }
3018
3119apply plugin : ' net.minecraftforge.gradle'
3220
You can’t perform that action at this time.
0 commit comments