Slack
The Slack notifier adds support to route messages to Slack using Incoming Webhooks.
Creating a Slack Incoming Webhook
Follow the instructions on the Slack website to create an Incoming Webhook.
Dependency
- build.gradle.kts
- build.gradle
- pom.xml
dependencies {
    testImplementation("nl.vanwollingen.alerticorn:alerticorn-slack-notifier:0.1") //To use Slack
}
dependencies {
    testImplementation 'nl.vanwollingen.alerticorn:alerticorn-slack-notifier:0.1'
}
<dependency>
    <groupId>nl.vanwollingen.alerticorn</groupId>
    <artifactId>alerticorn-slack-notifier</artifactId>
    <version>0.1</version>
    <scope>test</scope>
</dependency>
Shorthand Annotation
@Slack can be used as a shorthand for @Message.Platform("slack")
Example of using @Slack
@Slack
@Message(title = "This would go to Slack")
@Test
fun test() {
    //...
}
Configuration
Configure environment variables with AC_SLACK_CHANNEL_<your channel name> to hold the channel webhooks.