It's a gradle plugin using line-bot message push api to send line message.
First, you need to register a line-bot account, then get the token and room ID.
In build.gradle
, apply linepush plugin, and setting your line-bot information in line block.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.newnewcoder:linepush-gradle-plugin:1.0.0"
}
}
apply plugin: 'com.github.newnewcoder.linepush'
line {
token = "<your linebot token>"
sendTo = "<the roomID/userID/groupID you want to send>"
text = "<the message you want to send>"
}
Start a bash, and run the command below
./gradlew send
other example is here