Announce plugin doesn't work

plugins

(Forums) #1

I’m trying to gradle Announce plugin to get notification, but it doesn’t work well.

First, I installed growl on my mac.
2018-07-06_21-09-04

Then, I write a simple build.gradle:

apply plugin: 'announce' 

task hello { 
        doLast {
            println "Hello, world!"
            announce.announce("helloWorld completed!", "growl")
        }
}

Finally, I run the task gradle hello in iterm2.

In principle, my should receive a notification from growl. But I don’t receive anything. Can anyone help me? Thanks.