The Australian sharemarket has closed in the green with energy and banking stocks doing the heavy lifting.