{"id":13734584,"url":"https://github.com/Mindera/gradle-slack-plugin","last_synced_at":"2025-05-08T10:32:05.465Z","repository":{"id":31604089,"uuid":"35169005","full_name":"Mindera/gradle-slack-plugin","owner":"Mindera","description":"Gradle plugin to send messages to Slack after each build","archived":false,"fork":false,"pushed_at":"2019-11-05T22:06:25.000Z","size":71,"stargazers_count":153,"open_issues_count":4,"forks_count":24,"subscribers_count":56,"default_branch":"master","last_synced_at":"2024-11-15T02:34:46.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mindera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-06T16:05:24.000Z","updated_at":"2024-04-30T07:56:39.000Z","dependencies_parsed_at":"2022-08-26T08:25:10.095Z","dependency_job_id":null,"html_url":"https://github.com/Mindera/gradle-slack-plugin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindera%2Fgradle-slack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindera%2Fgradle-slack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindera%2Fgradle-slack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindera%2Fgradle-slack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mindera","download_url":"https://codeload.github.com/Mindera/gradle-slack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253045839,"owners_count":21845778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T03:00:57.675Z","updated_at":"2025-05-08T10:32:05.160Z","avatar_url":"https://github.com/Mindera.png","language":"Java","funding_links":[],"categories":["Plugins"],"sub_categories":["Notification"],"readme":"# gradle-slack-plugin\n\nGradle plugin to send Slack messages according to your build lifecycle. Useful to integrate with a CI server, to notify everyone that some gradle task has failed.\n\n![Build Passing](http://i.imgur.com/eIq9hp1.png)\n![Build Failing](http://i.imgur.com/cgf5fHf.png)\n\n## Usage\n\nThe plugin is available in [JitPack](https://jitpack.io/). Just add the following to your buildscript dependencies:\n\n```groovy\nbuildscript {\n\n    repositories {\n    \t....\n        maven {\n            url \"https://jitpack.io\"\n        }\n    }\n    \n    dependencies {\n    \t...\n        classpath 'com.github.Mindera:gradle-slack-plugin:1.0.7'\n    }\n}\n```\n\nApply it:\n\n```groovy\napply plugin: 'com.mindera.gradle.slack'\n```\n\n## Configuration \n\nFirst you need to setup slack to receive incoming messages:\n\n1. Go to *your_team*.slack.com/services/new/incoming-webhook\n2. Press Add Incoming WebHooks Integration\n3. Grab your WebHook URL\n\nThen in your build.gradle file:\n```groovy\nslack {\n    url 'your WebHook URL'\n}\n```\n\nBy default, everytime a build fails a slack message will be sent to the channel you configured. If a build succeeds nothing happens.\n\nThere are more optional fields that enable you to configure the slack integration:\n\n```groovy\nslack {\n    url 'your WebHook URL'\n    dependsOnTasks 'testDebug', 'publishApkRelease'\n    title 'my app name'\n    enabled = isCDMachine()\n}\n```\n\n*\tdependsOnTasks: let you specify a list of tasks that will trigger a message to slack, in case of error and success;\n*\ttitle: the title of the slack message, can be the name of your app for instance;\n*\tenabled: a boolean to define if the slack integration is active or not, useful to avoid sending messages on your local builds.\n\n\n## Credits\n\n[Slack WebHook Java API](https://github.com/gpedro/slack-webhook) by [gpedro](https://github.com/gpedro)\n\n## License\n\ngradle-slack-plugin is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMindera%2Fgradle-slack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMindera%2Fgradle-slack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMindera%2Fgradle-slack-plugin/lists"}