gradle-slack-upload-plugin

Introduction: 📦 Easily upload files to Slack using Gradle Plugin
More: Author   ReportBugs   
Tags:
                         _  _                    _               _              
   __ _  _ __  __ _   __| || |  ___         ___ | |  __ _   ___ | | __          
  / _` || '__|/ _` | / _` || | / _ \ _____ / __|| | / _` | / __|| |/ /          
 | (_| || |  | (_| || (_| || ||  __/|_____|\__ \| || (_| || (__ |   <           
  \__, ||_|   \__,_| \__,_||_| \___|       |___/|_| \__,_| \___||_|\_\          
  |___/         _                    _                _                _        
  _   _  _ __  | |  ___    __ _   __| |        _ __  | | _   _   __ _ (_) _ __  
 | | | || '_ \ | | / _ \  / _` | / _` | _____ | '_ \ | || | | | / _` || || '_ \ 
 | |_| || |_) || || (_) || (_| || (_| ||_____|| |_) || || |_| || (_| || || | | |
  \__,_|| .__/ |_| \___/  \__,_| \__,_|       | .__/ |_| \__,_| \__, ||_||_| |_|
        |_|                                   |_|               |___/

What's New in 1.0.0? :tada:

  • [Feature] Support Multi File

How to Use

Get Slack bots API Token

Usage

Kotlin kotlin buildscript { repositories { maven { url = uri("/Users/sangcomz/projects/gradle-slack-upload-plugin/repo") } } dependencies { classpath("xyz.sangcomz:gradle-slack-upload-plugin:0.0.4") } }
Groovy groovy buildscript { repositories { jcenter() } dependencies { classpath "xyz.sangcomz:gradle-slack-upload-plugin:1.0.0" } }
Kotlin kotlin apply { plugin("xyz.sangcomz.gradle") } configure<xyz.sangcomz.gradle.SlackUploadPluginExtension> { token = "your_slack_bot_api_token" channels = "your_channel1,your_channel2" title = "your_file_title" (optional) initialComment = "your_initial_comment" (optional) filePath = "your_file_path" filePaths = arrayOf("your_file_path1.txt", "your_file_path2.txt", "your_file_path3.txt") zipName = "your_zip_file_name" (optional) zipFilePath = "your_zip_file_path" (optional) deleteZipFileAfterUpload = false (optional) }
Groovy groovy apply plugin: 'xyz.sangcomz.gradle' slackUploader { token = "your_slack_bot_api_token" channels = "your_channel1,your_channel2" title = "your_file_title" (optional) initialComment = "your_initial_comment" (optional) filePath = "your_file_path" filePaths = ["your_file_path1.txt", "your_file_path2.txt", "your_file_path3.txt"] zipName = "your_zip_file_name" (optional) zipFilePath = "your_zip_file_path" (optional) deleteZipFileAfterUpload = false (optional) }

Example

slackUploader {
    token = "my_slack_bot_api_token"
    channels = "wowchannel"
    title = "File Title"
    initialComment = "Upload Sample.txt"
    //filePath = "sample.txt"
    filePaths = ["sample.txt", "sample2.txt", "sample3.txt"]
    zipName = "wowUploada"
    zipFilePath = "build/zip"
    deleteZipFileAfterUpload = false
}

filePath or filePaths require input.

FilePath Upload Result

FilePaths Upload Result

Contribute

Welcome any contributions.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools