Recently, we replaced the “old” maven plugin by still incubating “maven-publish” in our builds. While having a look into our CI server, we realized that average build time was significantly higher after doing the migration. We had a look at gradle profile report since we are using --profile in CI.
As a result we realized that “Configuring Projects” increased dramatically right after adding
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
to java projects of our multi-project build (~100 projects).
Before doing the migration it looked like this:
Configuring Projects 13.231s
Afterwards we had results like this:
Configuring Projects 1m0.03s
As a result our builds are ~45s slower now. (Note: we are using gradle 1.9)