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

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии • 23

  • @TomGregoryTech
    @TomGregoryTech  3 года назад

    ►► 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

  • @coemmac
    @coemmac 2 года назад +1

    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!

  • @maow-tty-archive
    @maow-tty-archive 4 года назад +5

    This video deserves more views, that opening was amazing.

    • @TomGregoryTech
      @TomGregoryTech  4 года назад

      Nice of you to say. I wasn't sure if this type of situational intro was useful, so thanks for feedback!

  • @rutellpecnos8699
    @rutellpecnos8699 3 года назад

    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

  • @ManuelJordan317
    @ManuelJordan317 4 года назад +2

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

  • @sum1specol
    @sum1specol 3 года назад +1

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

  • @lucaslupus1
    @lucaslupus1 4 года назад +1

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

  • @tempest738
    @tempest738 4 года назад +1

    Great video, exactly the information I was looking for.

  • @lordcristopherv
    @lordcristopherv 3 года назад +1

    It saved my intern job

  • @alek282
    @alek282 3 года назад

    Excellent video, thank you!

  • @manu-singh
    @manu-singh 4 года назад +1

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

    • @TomGregoryTech
      @TomGregoryTech  4 года назад

      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

  • @pandorasbox5576
    @pandorasbox5576 4 года назад

    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 ?

    • @TomGregoryTech
      @TomGregoryTech  4 года назад

      Hi! Which property did you try already? I would suggest org.gradle.jvmargs=-Xmx2000m

  • @rishi2224
    @rishi2224 4 года назад +1

    very useful

  • @hichamwarryor3547
    @hichamwarryor3547 3 года назад +1

    The 100 liker 😆

  • @donwald3436
    @donwald3436 Год назад

    You forgot "Using the correct IDE: Good"

  • @jozeftokarski1718
    @jozeftokarski1718 2 года назад +1

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

    • @TomGregoryTech
      @TomGregoryTech  2 года назад +1

      Hi Józef. That's a very good point! Thanks for pointing it out and for the chuckles.