Make the run config api stable

dev/0.11
modmuss50 2021-05-15 19:58:08 +01:00
parent 9fb167d506
commit 90ff811ecd
2 changed files with 0 additions and 7 deletions

View File

@ -367,12 +367,10 @@ public class LoomGradleExtension {
return log4jConfigs; return log4jConfigs;
} }
@ApiStatus.Experimental
public void runs(Action<NamedDomainObjectContainer<RunConfigSettings>> action) { public void runs(Action<NamedDomainObjectContainer<RunConfigSettings>> action) {
action.execute(runConfigs); action.execute(runConfigs);
} }
@ApiStatus.Experimental
public NamedDomainObjectContainer<RunConfigSettings> getRunConfigs() { public NamedDomainObjectContainer<RunConfigSettings> getRunConfigs() {
return runConfigs; return runConfigs;
} }

View File

@ -36,16 +36,11 @@ import org.gradle.api.Named;
import org.gradle.api.Project; import org.gradle.api.Project;
import org.gradle.api.plugins.JavaPluginConvention; import org.gradle.api.plugins.JavaPluginConvention;
import org.gradle.api.tasks.SourceSet; import org.gradle.api.tasks.SourceSet;
import org.jetbrains.annotations.ApiStatus;
import net.fabricmc.loom.LoomGradleExtension; import net.fabricmc.loom.LoomGradleExtension;
import net.fabricmc.loom.util.Constants; import net.fabricmc.loom.util.Constants;
import net.fabricmc.loom.util.OperatingSystem; import net.fabricmc.loom.util.OperatingSystem;
/**
* Experimental for now, please make sure to direct any suggests towards the github.
*/
@ApiStatus.Experimental
public final class RunConfigSettings implements Named { public final class RunConfigSettings implements Named {
/** /**
* Arguments for the JVM, such as system properties. * Arguments for the JVM, such as system properties.