Added smarter output table handling to gradle plugin.