Class IkeAnnounceDraftMojo

java.lang.Object
network.ike.plugin.IkeAnnounceDraftMojo
All Implemented Interfaces:
org.apache.maven.api.plugin.Mojo
Direct Known Subclasses:
IkeAnnouncePublishMojo

@Mojo(name="announce-draft", projectRequired=false) public class IkeAnnounceDraftMojo extends Object implements org.apache.maven.api.plugin.Mojo
Preview an announcement to a Zulip stream without posting it (IKE-Network/ike-issues#1016).

Announcing is outward-facing — other people read the channel — so the draft form is not a convenience. It prints the destination and the exact message, so an operator can see what would be said before anything is said.

Credentials come from the environment (ZULIP_BOT_EMAIL, ZULIP_BOT_TOKEN), which is what lets the same goal run locally under op run and on CI from its own parameters — the goal itself never holds a secret.

  • Constructor Details

    • IkeAnnounceDraftMojo

      public IkeAnnounceDraftMojo()
      Creates this goal instance.
  • Method Details

    • getLog

      protected org.apache.maven.api.plugin.Log getLog()
      Access the Maven logger.
      Returns:
      the logger
    • execute

      public void execute() throws org.apache.maven.api.plugin.MojoException
      Specified by:
      execute in interface org.apache.maven.api.plugin.Mojo
      Throws:
      org.apache.maven.api.plugin.MojoException