mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
fix defaulting join-classpath to true for plugin deps
This commit is contained in:
parent
ddd74452e4
commit
8ca7fa95c0
1 changed files with 11 additions and 13 deletions
|
@ -5286,25 +5286,23 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
@@ -0,0 +0,0 @@
|
||||
+package io.papermc.paper.plugin.provider.configuration.type;
|
||||
+
|
||||
+import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
+import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
+import org.spongepowered.configurate.objectmapping.ConfigSerializable;
|
||||
+
|
||||
+import static java.util.Objects.requireNonNullElse;
|
||||
+
|
||||
+@DefaultQualifier(NonNull.class)
|
||||
+@ConfigSerializable
|
||||
+public record DependencyConfiguration(
|
||||
+ LoadOrder load,
|
||||
+ boolean required,
|
||||
+ boolean joinClasspath
|
||||
+ Boolean required,
|
||||
+ Boolean joinClasspath
|
||||
+) {
|
||||
+
|
||||
+ public DependencyConfiguration(boolean required, boolean joinClasspath) {
|
||||
+ this(LoadOrder.OMIT, required, joinClasspath);
|
||||
+ }
|
||||
+
|
||||
+ public DependencyConfiguration(boolean required) {
|
||||
+ this(required, true);
|
||||
+ }
|
||||
+
|
||||
+ public DependencyConfiguration() {
|
||||
+ this(true);
|
||||
+ @SuppressWarnings("DataFlowIssue") // incorrect intellij inspections
|
||||
+ public DependencyConfiguration {
|
||||
+ required = requireNonNullElse(required, true);
|
||||
+ joinClasspath = requireNonNullElse(joinClasspath, true);
|
||||
+ }
|
||||
+
|
||||
+ @ConfigSerializable
|
||||
|
|
Loading…
Reference in a new issue