A simple Grails plugin which provide some core functionality and utility classes for a Grails application.
Configure the following config in your application.groovy
file:
grails.plugin.kernel.server.slack.notify.enabled = true
grails.plugin.kernel.server.slack.notify.webhookURL = "https://hooks.slack.com/services/xxxxxx/xxxxxxx/jJ5dbjbCnfB8EN5dBugFi3d"
Add ServerSlackNotifier.notifyServerStartup()
in Bootstrap.groovy
file in the last line of def init
closure. This will notify the
configured Slack channel on app startup with following info:
Add ServerSlackNotifier.notifyServerShutdown()
in Bootstrap.groovy
file in the last line of def destroy
closure. This will notify
the configured Slack channel on app shutdown with following info:
Grails Version | Supported |
---|---|
2 | Only v0.0.1 |
3 | >= v1.0.0 |
3.3.x | >= v2.0.0 |
See Releases for the changes.
Add the following to build.gradle
file of your Grails 3 application
Under repositories
section
maven { url "http://dl.bintray.com/wizpanda/grails-plugins" }
Under dependencies
section
compile "com.wizpanda.plugins:kernel:0.1"
Add the following to your BuildConfig.groovy
file:
Under respositories
block
mavenRepo "http://dl.bintray.com/wizpanda/grails-plugins"
Under plugins
block
compile "com.wizpanda.plugins:kernel:0.0.1"
- Change the version in the
build.gradle
. - Make sure Bintray configuration are configured properly as given here.
- Run
gradle bintrayUpload