Modified to add key parameter to POST request - needed by Kafka

Kafka uses <b>key</b> parameter so it was added.

Upgraded to latest Gradle distribution - faster builds