1
0
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:
Alex Plate 2019-07-02 17:28:12 +03:00
parent 1923e14ac4
commit e2a8ba7f0c
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F
2 changed files with 19 additions and 0 deletions

View File

@ -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());
}
}
}

View File

@ -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=