The maven and java package coordinates for swagger codegen 3.x have changed since 2.x (io.swagger:swagger-codegen-cli -> io.swagger.codegen.v3:swagger-codegen-cli, io.swagger.codegen.SwaggerCodegen -> io.swagger.codegen.v3.cli.SwaggerCodegen, respectively), so the .bzl file needs to be updated to support this.
The maven and java package coordinates for swagger codegen 3.x have changed since 2.x (io.swagger:swagger-codegen-cli -> io.swagger.codegen.v3:swagger-codegen-cli, io.swagger.codegen.SwaggerCodegen -> io.swagger.codegen.v3.cli.SwaggerCodegen, respectively), so the .bzl file needs to be updated to support this.