Move optional/provided configs to java-support.gradle