Gradle DaDaPush Notification Plugin

a gradle plugin for sending notification via DaDaPush

License

License

Categories

Categories

Gradle Build Tools CLI User Interface
GroupId

GroupId

com.dadapush.client
ArtifactId

ArtifactId

dadapush-gradle-plugin
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

Gradle DaDaPush Notification Plugin
a gradle plugin for sending notification via DaDaPush
Project URL

Project URL

https://github.com/dadapush/gradle-dadapush-notification-plugin
Source Code Management

Source Code Management

https://github.com/dadapush/gradle-dadapush-notification-plugin

Download dadapush-gradle-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/com.dadapush.client/dadapush-gradle-plugin/ -->
<dependency>
    <groupId>com.dadapush.client</groupId>
    <artifactId>dadapush-gradle-plugin</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.dadapush.client/dadapush-gradle-plugin/
implementation 'com.dadapush.client:dadapush-gradle-plugin:1.0.0'
// https://jarcasting.com/artifacts/com.dadapush.client/dadapush-gradle-plugin/
implementation ("com.dadapush.client:dadapush-gradle-plugin:1.0.0")
'com.dadapush.client:dadapush-gradle-plugin:jar:1.0.0'
<dependency org="com.dadapush.client" name="dadapush-gradle-plugin" rev="1.0.0">
  <artifact name="dadapush-gradle-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.dadapush.client', module='dadapush-gradle-plugin', version='1.0.0')
)
libraryDependencies += "com.dadapush.client" % "dadapush-gradle-plugin" % "1.0.0"
[com.dadapush.client/dadapush-gradle-plugin "1.0.0"]

Dependencies

runtime (1)

Group / Artifact Type Version
com.dadapush.client : dadapush-client jar 1.0.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Gradle DaDaPush Notification Plugin

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, 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
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
}
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
com.dadapush.client

DaDaPush

DaDaPush: Real-time Notifications App

Versions

Version
1.0.0