Fix gradle-plugin attribute generation to remove trailing .