Class OreSession
java.lang.Object
org.spongepowered.gradle.ore.internal.OreSession
- All Implemented Interfaces:
AutoCloseable
Represents a session with the Ore API
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static CompletableFuture<OreSession>organizationPermissions(@NotNull String organizationName) projectPermissions(@NotNull String pluginId) publishVersion(String pluginId, DeployVersionInfo info, Path pluginFile)
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON
-
-
Method Details
-
connect
public static CompletableFuture<OreSession> connect(Executor executor, String apiKey, String apiBase, long sessionDurationSeconds) -
terminate
-
publishVersion
public CompletableFuture<Version> publishVersion(String pluginId, DeployVersionInfo info, Path pluginFile) -
globalPermissions
-
projectPermissions
-
organizationPermissions
public CompletableFuture<KeyPermissions> organizationPermissions(@NotNull @NotNull String organizationName) -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-