Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

# Gradle DaDaPush Notification Plugin

```groovy
import com.dadapush.client.gradle.DaDaPushTask

plugins {
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
```