I need to upload file with HTTP post in gradle build. I found HTTPPlugin which could make the deal. I made a simple build but it gives me error:
Caused by: groovy.lang.MissingPropertyException: Could not get unknown
property 'HttpTask' for root project 'sample-app' of type
org.gradle.api.Project.
build.gradle
plugins {
id "io.github.http-builder-ng.http-plugin" version "0.1.1"
}
task notify(type:HttpTask){
config {
request.uri = 'http://something.com'
}
post {
request.uri.path = '/notify'
request.body = [event: 'activated']
response.success {
println 'The event notification was successful'
}
}
}
It seems gradle cannot find HTTPTask. Any idea what I'm missing?