setup gradle to create the same artifacts as sbt
make headers and provider state optional in the Java DSL