gradle-slack-upload-plugin

Additional

Language
Kotlin
Version
N/A
Created
Feb 16, 2020
Updated
Jan 12, 2022 (Retired)
Owner
Seokwon Jeong (sangcomz)
Contributor
Seokwon Jeong (sangcomz)
1
Activity
Badge
Generate
Download
Source code

Advertisement

                         _  _                    _               _              
   __ _  _ __  __ _   __| || |  ___         ___ | |  __ _   ___ | | __          
  / _` || '__|/ _` | / _` || | / _ \ _____ / __|| | / _` | / __|| |/ /          
 | (_| || |  | (_| || (_| || ||  __/|_____|\__ \| || (_| || (__ |   <           
  \__, ||_|   \__,_| \__,_||_| \___|       |___/|_| \__,_| \___||_|\_\          
  |___/         _                    _                _                _        
  _   _  _ __  | |  ___    __ _   __| |        _ __  | | _   _   __ _ (_) _ __  
 | | | || '_ \ | | / _ \  / _` | / _` | _____ | '_ \ | || | | | / _` || || '_ \ 
 | |_| || |_) || || (_) || (_| || (_| ||_____|| |_) || || |_| || (_| || || | | |
  \__,_|| .__/ |_| \___/  \__,_| \__,_|       | .__/ |_| \__,_| \__, ||_||_| |_|
        |_|                                   |_|               |___/           

gradle-slack-upload-plugin

What's New in 1.0.0? 🎉

  • [Feature] Support Multi File

How to Use

Get Slack bots API Token

Usage

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
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath "xyz.sangcomz:gradle-slack-upload-plugin:1.0.0"
    }
}
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
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.