Gradle project properties best practices (don't be that guy)

preview_player
Показать описание
Gradle project properties provide an easy way to customise builds which may need to run slightly differently each time. In this video you’ll learn the most effective ways to use and set properties, along with some common scenarios you might come across in your Gradle project.

You'll discover the answer to these questions:

✅ Why use project properties in a Gradle build? (not storing credentials in version control, configurability of builds etc.)
✅ What ways are there to pass in Gradle project properties? (command line, environment variables, properties files etc.)
✅ What ways are there to access project properties in a build? (directly, with default value etc.)

Рекомендации по теме
Комментарии
Автор

This video deserves more views, that opening was amazing.

maow-tty-archive
Автор

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!

coemmac
Автор

And excellent video, you definitively deserve more subscribers, more views and cold beer!

ManuelJordan
Автор

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

rutellpecnos
Автор

Really appreciate the amazing work you have put in this video. Thanks for educating all of us.

sumspecol
Автор

Great video, exactly the information I was looking for.

tempest
Автор

Great job Tom! You will soon have a lot of viewers, your content is great

lucaslupus
Автор

Hi Tom i heard about faster app builds by doing some gradle.properties enhancements.
Do you know anything about that

manu-singh
Автор

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 ?

pandorasbox
Автор

You forgot "Using the correct IDE: Good"

donwald
Автор

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 😉)

jozeftokarski