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 valuechannelToken
: no default value, if it is not set, will use global valuetitle
: no default value, if it is not set, will use global valuecontent
: 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