Skip to content

A Grails plugin to provide some core functionality and utility classes

License

Notifications You must be signed in to change notification settings

dev-sushant1992/kernel

 
 

Repository files navigation

Kernel (v2.0.11)

A simple Grails plugin which provide some core functionality and utility classes for a Grails application.

Usage

Slack Server Notifier

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:

image

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:

image

Compatibility

Grails Version Supported
2 Only v0.0.1
3 >= v1.0.0
3.3.x >= v2.0.0

Change Log

See Releases for the changes.

Installation

Grails 3

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"

Grails 2

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"

Releasing new version

  1. Change the version in the build.gradle.
  2. Make sure Bintray configuration are configured properly as given here.
  3. Run gradle bintrayUpload

About

A Grails plugin to provide some core functionality and utility classes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 57.9%
  • Java 42.1%