crossbario / autobahn-java

WebSocket & WAMP in Java for Android and Java 8
https://crossbar.io/autobahn
MIT License
1.52k stars 426 forks source link

Improve GRADLE build Performance #535

Closed i-Taozi closed 2 years ago

i-Taozi commented 2 years ago

Parallel builds. This project contains multiple modules. Parallel builds can improve the build speed by executing tasks in parallel. We can enable this feature by setting org.gradle.parallel=true.

File system watching. Since Gradle 6.5, File system watching was introduced which can help to avoid unnecessary I/O. This feature is the default since 7.0. For an older version, we can enable this feature by setting org.gradle.vfs.watch=true.

Configuration on demand. Configuration on demand tells Gradle to configure modules that only are relevant to the requested tasks instead of configuring all of them. We can enable this feature by setting org.gradle.configureondemand=true.

gradle caching. Shared caches can reduce the number of tasks you need to execute by reusing outputs already generated elsewhere. This can significantly decrease build times. We can enable this feature by setting org.gradle.caching=true.

===================== If there are any inappropriate modifications in this PR, please give me a reply and I will change them.

oberstet commented 2 years ago

thanks for contributing! sorry, no one seem to have noticed the PR in the first place:( anyways, I triggered the CI (as this is your 1st contrib) and requested a review .. just in case

oberstet commented 2 years ago

so CI ran green, but the CI log output does not contain the word "parallel" - did it run in parallel? @i-Taozi does it work like you expected? if so, I can merge this .. only changes some CI knobs ..

i-Taozi commented 2 years ago

Thank you @oberstet ! Everything is working fine, and it could be merged. Have a nice day!