User: bjarne koll Date: 07 Dec 23 16:54 Revision: 2968496da530d193800b74257e2b4236d814a58e Summary: Mark paper-plugin.yml as experimental (#2122) While paper plugins and their respective loading strategy have been integrated into paper for a while now, the developer facing side of paper plugins is still highly experimental. Specifically the paper-plugin.yml file structure is still under active development and its syntax might change without a deprecation cycle. Its usage for general purpose plugin development is still hence discouraged. While developers that are familiar with the caveats of using paper plugins but decide to do so anyway due to the already existing features exist, this commit still adds a warning to ensure that developers not familiar with the system do not accidentally use it for new projects, preventing frustration down the line with potential missing features or breaking changes over the usage of a plain plugin.yml file. TeamCity URL: https://ci.mcdev.io/viewModification.html?tab=vcsModificationFiles&modId=8880&personal=false Index: src/main/kotlin/platform/bukkit/creator/bukkit-platforms.kt =================================================================== --- src/main/kotlin/platform/bukkit/creator/bukkit-platforms.kt (revision 3c8b1e558f48067c9522f3b8d14ea939de171339) +++ src/main/kotlin/platform/bukkit/creator/bukkit-platforms.kt (revision 2968496da530d193800b74257e2b4236d814a58e) @@ -26,8 +26,10 @@ import com.demonwav.mcdev.util.MinecraftTemplates import com.demonwav.mcdev.util.MinecraftVersions import com.demonwav.mcdev.util.SemanticVersion +import com.intellij.icons.AllIcons import com.intellij.openapi.observable.util.bindBooleanStorage import com.intellij.openapi.ui.validation.WHEN_GRAPH_PROPAGATION_FINISHED +import com.intellij.ui.content.AlertIcon import com.intellij.ui.dsl.builder.Panel import com.intellij.ui.dsl.builder.bindSelected @@ -74,7 +76,11 @@ override fun setupUI(builder: Panel) { super.setupUI(builder) with(builder) { - row("Paper manifest:") { + row("Paper Manifest:") { + icon(AlertIcon(AllIcons.General.Warning)).comment( + "Paper plugins are " + + "still experimental, their usage is discouraged for general purpose development. " + ) checkBox("Use paper-plugin.yml") .bindSelected(usePaperManifestProperty) .validationRequestor(WHEN_GRAPH_PROPAGATION_FINISHED(propertyGraph))