Taming Dependencies with Gradle Version Catalogs

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

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

  • @zeusalmighty6740
    @zeusalmighty6740 2 месяца назад +1

    Not sure which version this was added but at least in Android Studio, IDE shows a warning if update is available in toml

    • @PairingWithDuncan
      @PairingWithDuncan  2 месяца назад +1

      I had heard that there was editor support, but haven’t seen it in IntelliJ. There is a warning (at least in the build.gradle) if there is a CVE against a library, but I didn’t see support for other version updates.

  • @Alivezombie16
    @Alivezombie16 2 месяца назад +2

    Do either of dependency tasks you used allow you to specify via flags or config to ignore alpha/beta/RC and/or only show patch, minor or major updates?

    • @PairingWithDuncan
      @PairingWithDuncan  2 месяца назад +3

      Good question thank you. They do! Gradle-versions-plugin has something complicated, but I’m told that refreshVersions can be configured with
      refreshVersions {
      enableBuildSrcLibs()
      rejectVersionIf {
      candidate.stabilityLevel.isLessStableThan(current.stabilityLevel)
      }
      }

    • @TimSchraepen
      @TimSchraepen 2 месяца назад +1

      Hilarious intro 😂

    • @PairingWithDuncan
      @PairingWithDuncan  2 месяца назад +1

      @TimSchraepen thank you. It’s the only bit I script, so it’s good to know my efforts aren’t wasted

  • @nixoncode
    @nixoncode 2 месяца назад +1

    I got into Kotlin sometimes back, it's horrible having to upgrade every 3 months. no wonder Java won.
    I pity my team for putting them through this

    • @PairingWithDuncan
      @PairingWithDuncan  2 месяца назад +2

      Do you need to talk about it ;-?
      I do feel that Kotlin is going through a bit of a lull at the moment. We have to put up with constant tooling change for not perceived progress on the language front. The changes, Gradle aside, are rarely breaking though, so I tolerate them. Java is also evolving, but I don’t think we can say either won, and I still prefer Kotlin to Java or Scala for team productivity and fun.