Any way to avoid waiting 4 minutes every time I press run?

My application has gotten quite big and every time I change a single line of code on a service class in application and press run its a 4 minute wait. Is there a way to speed things up?

It depends.
To speed up the compiling/building of the app, you can get faster hardware. (I also think might be worth investigating if the IDE can be configured not to check for things on the Internet)

Next step is the deployment, when you do it locally on your PC, a Jetty server is deployed/used, and then your application is deployed to that and started.
Have some e.g. Tomcat server running all the time and then redeploy the new version of your app without restarting it.
Next step is to enter the world of hotswaping - which is updating the Java classes while the application is running.
Please read this
http://hotswapagent.org/index.html
and this

and especially this:

Kind regards,
Mladen

If the problem is in the build phase, another option would be to split the single application project to a set of add-ons. You can use the composite project feature to still have a single project in the IDE.

1 Like

this sounds nice but will all this be in one git repository? Devops pulls from git and makes the build from one repository.

Sure, why not. Just make the repo in the root folder.

To build the application in the composite project go to the “all” folder and execute the command like this:

./gradlew :app:bootJar

where app is the name of the application subproject.