Skip to content

Instantly share code, notes, and snippets.

View etiennestuder's full-sized avatar

Etienne Studer etiennestuder

View GitHub Profile
@etiennestuder
etiennestuder / speak.gradle
Last active March 14, 2024 07:30
Voice notification when when Gradle build finishes (for Mac OS X)
// When runnning a Gradle build in the background, it is convenient to be notified immediately
// via voice once the build has finished - without having to actively switch windows to find out -
// and being told the actual exception in case of a build failure.
// Put this file into the folder ~/.gradle/init.d to enable the acoustic notifications for all builds
gradle.addBuildListener(new BuildAdapter() {
@Override
void buildFinished(BuildResult result) {