https://github.com/sangcomz/gradle-slack-upload-plugin
📦 Easily upload files to Slack using Gradle Plugin
https://github.com/sangcomz/gradle-slack-upload-plugin
file-uploader gradle kotlin-dsl slack
Last synced: 5 days ago
JSON representation
📦 Easily upload files to Slack using Gradle Plugin
- Host: GitHub
- URL: https://github.com/sangcomz/gradle-slack-upload-plugin
- Owner: sangcomz
- License: mit
- Created: 2020-02-16T14:05:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-12T14:31:18.000Z (over 3 years ago)
- Last Synced: 2024-04-23T09:18:58.175Z (about 1 year ago)
- Topics: file-uploader, gradle, kotlin-dsl, slack
- Language: Kotlin
- Homepage:
- Size: 254 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
_ _ _ _
__ _ _ __ __ _ __| || | ___ ___ | | __ _ ___ | | __
/ _` || '__|/ _` | / _` || | / _ \ _____ / __|| | / _` | / __|| |/ /
| (_| || | | (_| || (_| || || __/|_____|\__ \| || (_| || (__ | <
\__, ||_| \__,_| \__,_||_| \___| |___/|_| \__,_| \___||_|\_\
|___/ _ _ _ _
_ _ _ __ | | ___ __ _ __| | _ __ | | _ _ __ _ (_) _ __
| | | || '_ \ | | / _ \ / _` | / _` | _____ | '_ \ | || | | | / _` || || '_ \
| |_| || |_) || || (_) || (_| || (_| ||_____|| |_) || || |_| || (_| || || | | |
\__,_|| .__/ |_| \___/ \__,_| \__,_| | .__/ |_| \__,_| \__, ||_||_| |_|
|_| |_| |___/
```
# gradle-slack-upload-plugin## 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 {
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
```groovy
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.