-Dgrails.server.port.http=8090

For grails 3 you can put this in your application.yml

server:
    port: 9999