Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the port I run a play application with using gradle?

I recently discovered the play plugin for gradle and would like to know how to configure the port the application runs on.

I've read the documentation page on the gradle site but still find myself a little confused. So if someone would like to just like to spell it out for me that would be great.

Kind Regards

Will

like image 314
Will Avatar asked Dec 07 '25 07:12

Will


1 Answers

Playrun has an httpPort property you can use, something like this should work

tasks.withType(PlayRun) {
    httpPort = 9999
}
like image 107
Frederic Henri Avatar answered Dec 11 '25 05:12

Frederic Henri