Adding conditional java_version to nexus