Skip to content

Commit 1019f04

Browse files
committed
Add PatcherConfig.V2.extraDependencies
This was recently added to ForgeGradle 6.0.
1 parent 2e23158 commit 1019f04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

json-data-utils/src/main/java/net/minecraftforge/util/data/json/PatcherConfig.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
*/
55
package net.minecraftforge.util.data.json;
66

7+
import org.jetbrains.annotations.ApiStatus;
8+
import org.jetbrains.annotations.Nullable;
9+
710
import java.util.Collections;
811
import java.util.List;
912
import java.util.Map;
@@ -81,6 +84,9 @@ public static class V2 extends PatcherConfig {
8184
public Boolean notchObf; //This is a Boolean so we can set to null and it won't be printed in the json.
8285
public List<String> universalFilters;
8386
public List<String> modules; // Modules passed to --module-path
87+
@Deprecated
88+
@ApiStatus.ScheduledForRemoval(inVersion = "V3")
89+
public ScopedDependencies extraDependencies;
8490
public String sourceFileCharset; // = StandardCharsets.UTF_8.name();
8591

8692
public V2(PatcherConfig o) {
@@ -109,5 +115,11 @@ public static class DataFunction extends Function {
109115
public boolean notchObf() {
110116
return this.notchObf != null && this.notchObf;
111117
}
118+
119+
public final static class ScopedDependencies {
120+
public @Nullable List<String> runtimeOnly;
121+
public @Nullable List<String> compileOnly;
122+
public @Nullable List<String> annotationProcessor;
123+
}
112124
}
113125
}

0 commit comments

Comments
 (0)