Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dadapush/gradle-dadapush-notification-plugin
Gradle DaDaPush Notification Plugin
https://github.com/dadapush/gradle-dadapush-notification-plugin
dadapush gradle gradle-plugin notifications push-notifications
Last synced: 5 days ago
JSON representation
Gradle DaDaPush Notification Plugin
- Host: GitHub
- URL: https://github.com/dadapush/gradle-dadapush-notification-plugin
- Owner: dadapush
- Created: 2019-08-08T05:31:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-08T08:33:23.000Z (over 5 years ago)
- Last Synced: 2024-10-12T20:20:52.768Z (about 1 month ago)
- Topics: dadapush, gradle, gradle-plugin, notifications, push-notifications
- Language: Java
- Homepage: https://www.dadapush.com
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gradle DaDaPush Notification Plugin
```groovy
import com.dadapush.client.gradle.DaDaPushTaskplugins {
id "com.dadapush.gradle" version "1.0.0"
}apply plugin: 'com.dadapush.gradle'
```## global parameter
- `basePath`: default value: "https://www.dadapush.com"
- `channelToken`: go to [DaDaPush](https://www.dadapush.com), create new channel.
- `title`: default value: "(not set title)"
- `content`: default value: "(not set content)"
- `failOnError`: default value: false## task parameter
- `basePath`: no default value, if it is not set, will use global value
- `channelToken`: no default value, if it is not set, will use global value
- `title`: no default value, if it is not set, will use global value
- `content`: no default value, if it is not set, will use global value```groovy
dadapush {
channelToken "YOUR_CHANNEL_TOKEN"
title "${project.name}"
content "project: ${project.name}\n" +
"version: ${project.version}\n" +
"gradleVersion: ${project.gradle.gradleVersion}\n" +
"buildDir: ${project.buildDir}\n"
failOnError false
}```
```groovy
task dadapushSend(type: DaDaPushTask) {
title "${project.name} assemble success"
}tasks.assemble.doLast() {
dadapushSend.execute()
}task dadapushSendForBuild(type: DaDaPushTask) {
title "${project.name} build success"
channelToken "YOUR_CHANNEL_TOKEN"
content "project: ${project.name}\n" +
"version: ${project.version}\n" +
"gradleVersion: ${project.gradle.gradleVersion}\n" +
"buildDir: ${project.buildDir}\n"
}tasks.build.doLast() {
dadapushSendForBuild.execute()
}
```## developer guide
build```
./gradlew build
```
install to local maven repository```
./gradlew build
```
upload to oss maven repository```
./gradlew uploadArchives
```close staging and release
```
./gradlew closeAndReleaseRepository
```
upload gradle plugin repo
```
./gradlew publishPlugins
```