This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
} | |
plugins { | |
id 'com.github.sherter.google-java-format' version '0.3.2' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
apply plugin: 'maven' | |
repositories { | |
jcenter() | |
mavenLocal() | |
} | |
dependencies { | |
compile 'uk.co.mattburns.pwinty:pwinty-java-sdk:2.3.1' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect to the event notification stream | |
./jfrog bt st <bintray-org> --user=<bintray-username> --key=<bintray-api-key> --include="download" | | |
while read line | |
do | |
# Extract the path from the whole event response | |
path=$(echo $line | jq .path -r) | |
curl <slack-webhook-url> -H"Content-Type:application/json" --data "{\"text\":\"File Downloaded: $path\"}" | |
done |