Package net.kyori.blossom.internal
Class IdeConfigurer
java.lang.Object
net.kyori.blossom.internal.IdeConfigurer
Configures different IDEs when applicable.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(@NotNull org.gradle.api.Project project, @NotNull IdeConfigurer.IdeImportAction toPerform) Applies the specified configuration action to configure IDE projects.static booleanGet whether this Gradle invocation is from an Eclipse project import.static booleanGet whether Gradle is being invoked through IntelliJ IDEA.
-
Method Details
-
isIdeaImport
public static boolean isIdeaImport()Get whether Gradle is being invoked through IntelliJ IDEA.This can be through a project import, or a task execution.
- Returns:
- whether this is an IntelliJ-based invocation
-
isEclipseImport
public static boolean isEclipseImport()Get whether this Gradle invocation is from an Eclipse project import.- Returns:
- whether an eclipse import is ongoing
-
apply
public static void apply(@NotNull @NotNull org.gradle.api.Project project, @NotNull @NotNull IdeConfigurer.IdeImportAction toPerform) Applies the specified configuration action to configure IDE projects.This does not apply the IDEs' respective plugins, but will perform actions when those plugins are applied.
- Parameters:
project- project to apply totoPerform- the actions to perform
-