The Announce Plugin
| ⚠ | This plugin is deprecated and will be removed in the next major Gradle release. New builds should not use this plugin. | 
The Gradle announce plugin allows you to send custom announcements during a build. The following notification systems are supported:
- 
notify-send (Ubuntu) 
- 
Snarl (Windows) 
- 
Growl (macOS) 
Usage
To use the announce plugin, apply it to your build script:
plugins {
    id 'announce'
}plugins {
    announce
}Configuration
| ✨ | See also the AnnouncePluginExtension class in the API documentation. | 
Configure your notification service(s) of choice (see table below for which configuration properties are available):
announce {
  username = 'myId'
  password = 'myPassword'
}announce {
    username = "myId"
    password = "myPassword"
}Finally, send announcements with the announce method:
task helloWorld {
    doLast {
        println "Hello, world!"
    }
}
helloWorld.doLast {
    announce.announce("helloWorld completed!", "twitter")
    announce.announce("helloWorld completed!", "local")
}val helloWorld by tasks.registering {
    doLast {
        println("Hello, world!")
    }
}
helloWorld {
    doLast {
        announce.announce("helloWorld completed!", "twitter")
        announce.announce("helloWorld completed!", "local")
    }
}The announce method takes two String arguments: The message to be sent, and the notification service to be used. The following list shows supported notification services and their configuration properties.
Supported notification services
- twitter
- 
Works on all operating systems. Requires usernameandpassword.
- snarl
- 
Windows only. Requires no extra configuration. 
- growl
- 
macOS only. Requires no extra configuration. 
- notify-send
- 
Ubuntu only. Requires the notify-send package to be installed. Use sudo apt-get install libnotify-binto install it.
- local
- 
Automatically chooses between snarl, growl, and notify-send depending on the current operating system.