►► Getting started with Gradle just got much easier. Check out my FREE Get Going with Gradle course → learn.tomgregory.com/courses/get-going-with-gradle
This might sound insignificant but I've been struggling with properties on an existing project for over 2 hours, and you fixed it in an 8 min video thanks for the help
Yes you can set some performance related properties in gradle.properties. org.gradle.jvmargs for example you could use to increase the memory available to the JVM or org.gradle.caching could be used for reusing task outputs from previous builds (build cache). See here for full details docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
Hey Tom - I have a weird requirement wherein I want to set Xmx value to my gradle worker process. I was able to run the wrapper process with specified Xmx value. This in turn starts a child worker process whose Xmx value is defaulting to a lower value and my job is running out of heap space. Is there a way to start the worker process with the same gradle options as that of the wrapper ?
Let's also mention yet another way of passing Project Property to Gradle build, the Extra Properties. Although it's not passing property from an external source, this is still worth being aware of it. For example ext['log4j2.version'] = '2.17.1' (especially popular in early 2022 😉)
►► Getting started with Gradle just got much easier. Check out my FREE Get Going with Gradle course → learn.tomgregory.com/courses/get-going-with-gradle
I just moved from .Net to Java and I can't tell you how useful your videos have been during this transition! Thank you so much!
This video deserves more views, that opening was amazing.
Nice of you to say. I wasn't sure if this type of situational intro was useful, so thanks for feedback!
This might sound insignificant but I've been struggling with properties on an existing project for over 2 hours, and you fixed it in an 8 min video
thanks for the help
Spot on. Glad it helped you out
And excellent video, you definitively deserve more subscribers, more views and cold beer!
Really appreciate the amazing work you have put in this video. Thanks for educating all of us.
Great job Tom! You will soon have a lot of viewers, your content is great
Thanks Lucas!
Great video, exactly the information I was looking for.
It saved my intern job
Excellent video, thank you!
Hi Tom i heard about faster app builds by doing some gradle.properties enhancements.
Do you know anything about that
Yes you can set some performance related properties in gradle.properties. org.gradle.jvmargs for example you could use to increase the memory available to the JVM or org.gradle.caching could be used for reusing task outputs from previous builds (build cache).
See here for full details docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
Hey Tom - I have a weird requirement wherein I want to set Xmx value to my gradle worker process. I was able to run the wrapper process with specified Xmx value. This in turn starts a child worker process whose Xmx value is defaulting to a lower value and my job is running out of heap space.
Is there a way to start the worker process with the same gradle options as that of the wrapper ?
Hi! Which property did you try already? I would suggest org.gradle.jvmargs=-Xmx2000m
very useful
The 100 liker 😆
Congrats my friend 😆
You forgot "Using the correct IDE: Good"
Let's also mention yet another way of passing Project Property to Gradle build, the Extra Properties. Although it's not passing property from an external source, this is still worth being aware of it. For example ext['log4j2.version'] = '2.17.1' (especially popular in early 2022 😉)
Hi Józef. That's a very good point! Thanks for pointing it out and for the chuckles.