mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-02-25 11:46:02 +01:00
Add gradle task with slack notifications about EAP releases
This commit is contained in:
parent
1923e14ac4
commit
e2a8ba7f0c
17
build.gradle
17
build.gradle
@ -57,3 +57,20 @@ repositories {
|
||||
dependencies {
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
|
||||
}
|
||||
|
||||
tasks.register("slackEapNotification") {
|
||||
doLast {
|
||||
if (!slackUrl) return
|
||||
def post = new URL(slackUrl).openConnection();
|
||||
def message = "{\"text\":\"New EAP released: $version\"}"
|
||||
post.setRequestMethod("POST")
|
||||
post.setDoOutput(true)
|
||||
post.setRequestProperty("Content-Type", "application/json")
|
||||
post.getOutputStream().write(message.getBytes("UTF-8"));
|
||||
def postRC = post.getResponseCode();
|
||||
println(postRC);
|
||||
if(postRC.equals(200)) {
|
||||
println(post.getInputStream().getText());
|
||||
}
|
||||
}
|
||||
}
|
@ -10,3 +10,5 @@ publishChannels=eap
|
||||
# Since 192 version of IJ java plugin should be defined separately
|
||||
# Set this value to true if you are going to run tests under idea version < 192
|
||||
legacyNoJavaPlugin=false
|
||||
|
||||
slackUrl=
|
||||
|
Loading…
Reference in New Issue
Block a user