Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Improve gradle startup time with groovyserv or nailgun or what

I'm trying to improve the startup time of Gradle. The expererimental --daemon switch doesn't seem to really speed it up. So I'm thinking to use some server process independent of gradle, and make gradle connect to it. The options I found so far are

  • nailgun to invoke java
  • GroovyServ to invoke a groovy script

Since gradle is started by a shell script, it takes some tweaking. My question is: has anyone used the above options to start gradle? Or if you have successfully used another option, what's that?

like image 492
Adam Schmideg Avatar asked Feb 23 '23 12:02

Adam Schmideg


1 Answers

My guess is that your build is doing something at configuration time that it should be doing at execution time. With m5, gradle build --profile will give you an HMTL report showing where the time goes. Another way to see what's going on is gradle build --info or gradle build --debug.

like image 76
Peter Niederwieser Avatar answered Apr 28 '23 01:04

Peter Niederwieser