Modified to add key parameter to POST request - needed by Kafka; also updated to Gradle 1.11