Administrator
|
Hi,
I don't know if you tried, but if you have a processor with several cores you may appreciate to put this in your gradle.properties file org.gradle.parallel=true See https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties for details Warning: in Gradle 3.2.1 (our current version) this is experimental (Beta) but seems to work perfectly so far I found it in https://zeroturnaround.com/rebellabs/making-gradle-builds-faster/ but did not explore the other possibilities yet I just found also https://guides.gradle.org/performance/ which seems more CI oriented and certainly a definitive reference, but I must say have not time to explore yet... Jacques |
I think the parallel feature is not applicable to OFBiz because the
projects are not decoupled [1] [2]. So there is no gain from setting this flag (or it might be harmful). Furthermore, the parallel flag is still incubating at the latest version. [1] https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:parallel_execution [2] https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:decoupled_projects On Wed, Oct 4, 2017 at 5:40 PM, Jacques Le Roux <[hidden email]> wrote: > Hi, > > I don't know if you tried, but if you have a processor with several cores > you may appreciate to put this in your gradle.properties file > > org.gradle.parallel=true > > See > https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties > for details > > Warning: in Gradle 3.2.1 (our current version) this is experimental (Beta) > but seems to work perfectly so far > > I found it in > https://zeroturnaround.com/rebellabs/making-gradle-builds-faster/ but did > not explore the other possibilities yet > > I just found also https://guides.gradle.org/performance/ which seems more CI > oriented and certainly a definitive reference, but I must say have not time > to explore yet... > > Jacques > |
Administrator
|
Ouch this is more complicated than what I thought.
I thought we had subprojects because we have subprojectExists in the main build. gradle and all the other build. gradle files So it must be that the acceleration I felt is only a coincidence due to my current level of memory usage and no stopped daemons, I still appreciate it :) Jacques Le 04/10/2017 à 17:11, Taher Alkhateeb a écrit : > I think the parallel feature is not applicable to OFBiz because the > projects are not decoupled [1] [2]. So there is no gain from setting > this flag (or it might be harmful). Furthermore, the parallel flag is > still incubating at the latest version. > > [1] https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:parallel_execution > [2] https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:decoupled_projects > > On Wed, Oct 4, 2017 at 5:40 PM, Jacques Le Roux > <[hidden email]> wrote: >> Hi, >> >> I don't know if you tried, but if you have a processor with several cores >> you may appreciate to put this in your gradle.properties file >> >> org.gradle.parallel=true >> >> See >> https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties >> for details >> >> Warning: in Gradle 3.2.1 (our current version) this is experimental (Beta) >> but seems to work perfectly so far >> >> I found it in >> https://zeroturnaround.com/rebellabs/making-gradle-builds-faster/ but did >> not explore the other possibilities yet >> >> I just found also https://guides.gradle.org/performance/ which seems more CI >> oriented and certainly a definitive reference, but I must say have not time >> to explore yet... >> >> Jacques >> |
Free forum by Nabble | Edit this page |