Це відео не доступне.
Перепрошуємо.

Dependency Management with Gradle - Part 1: Fundamentals

Поділитися
Вставка
  • Опубліковано 31 лип 2024
  • Whether you use a mono-repository or multi-repository approach for your sources, managing dependencies is central to productivity by reusing artifacts and ensuring a quality build. A single incorrect dependency can break existing code, introduce a vulnerability or simply prevent your project from building.
    This class will introduce dependency management for Java.
    It will help you understand the key concepts and give you the knowledge to tackle many of the common requirements and pitfalls you will likely encounter.
    The topics covered include:
    - Declaring dependencies and the repositories you retrieve them from
    - Understanding what dependency configurations are
    - Using dependency versions to express requirements and compatibility
    - Using dependency constraints to control transitive dependency versions
    - Ensuring the same versions of dependency are used across projects within a build
    - Understanding the principles of variant-aware dependency management and the problems it solves
    - Discussing compatibility of Gradle’s dependency management with Apache Maven(™) and Apache Ivy(™)
    - Troubleshooting problems with dependencies
    Create a Gradle and/or Maven Build Scan - scans.gradle.com/

КОМЕНТАРІ • 26

  • @Kyrogue
    @Kyrogue 4 роки тому +8

    great series for beginners!

  • @PulpFreePress
    @PulpFreePress 3 роки тому +2

    Very helpful, thank you gents!

  • @rozaco_games
    @rozaco_games 4 місяці тому

    When I run command gradlew dependencies following error occur plugin [id: 'com.android.application', version: '8.3'] was not found in any of the following sources: - gradle core plugins (plugin is not in 'org.gradle' namespace) - plugin repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:8.3') searched in the following repositories: gradle central plugin repository google in godot

  • @marcpinto5286
    @marcpinto5286 2 роки тому

    Great video thank you!

  • @aleph.5811
    @aleph.5811 4 роки тому +1

    hi, for the api configuration, does the dependency leak through all the consumers or just the most immediate consumer?

  • @aymanpatel
    @aymanpatel 4 роки тому

    Is the code hosted on Github. I want to get started by doing it from the bootstrapped project used here?

    • @aymanpatel6945
      @aymanpatel6945 3 роки тому

      Source Code: github.com/gradle/webinar-dep-mgmt-part-1

  • @rahulviveka2
    @rahulviveka2 2 роки тому

    Excellent lecture better than gradle docs

  • @57skies
    @57skies 2 роки тому +3

    every time I want to do something "fancy" with gradle and lose 3 days on not getting even the minimum examples running from the documentation (which is terrible if you ask me), I curse and promise myself to never touch this tool again. It sounds bad, and it really is. When all you have to do is build a "spring-boot" like application, sure gradle is awesome and I love it. When in turn I want to use to publish different variants, for example, I swear, I hate it. This fundamentals were supposed to be helpful? Sorry folks, not even close.

    • @deleaptealeaf8935
      @deleaptealeaf8935 2 роки тому

      I whole heatedly agree. I don't know why people rave about this tool. Ant is so much easier to use and understand. With this, if you want to move files around or rename them you still have to depend on ant! Nothing is straightforward!
      Ugghhh! Piece of cr@p!

  • @stIncMale
    @stIncMale 3 роки тому +8

    As someone who has a quite decent knowledge of Maven, I am watching this fundamentals video, and I can tell - the way information is presented makes no sense. I almost completely fail to extract something meaningful from the lecture.
    As a side note, who came up with the insane syntax "[3.9, 4.0["? What is wrong with the half-open interval notation "[3.9, 4.0)" used in math and known to virtually every engineer?

    • @golem99
      @golem99 3 роки тому

      During my studies of mathematics both syntaxes have been used evenly. So in my understanding this [3.9,4.0[ is not uncommon at all.

    • @57skies
      @57skies 2 роки тому +1

      I will second this comment. this is just terrible presentation, with exactly zero usefulness

    • @karlosdaniel6537
      @karlosdaniel6537 2 роки тому

      @@golem99 Me too.

  • @nathansmalley8433
    @nathansmalley8433 4 роки тому +1

    Everybody I've seen talking about or using Gradle/Java have a European or Indian accent..

    • @RohitNaik
      @RohitNaik 3 роки тому

      @Justin Smith that's also because some of these enthusiast young UA-camrs just can't afford an Apple device for development. So, mostly end up with windows machine and do their best to spread the knowledge which they gain

  • @jpphoton
    @jpphoton 3 роки тому +3

    good talk but gradle's semantics and dep management is waaay too complex.

    • @57skies
      @57skies 2 роки тому +1

      and the documentation does not help either. the more I read the docs, the less I want to use gradle

    • @nilanjanmukhopadhyay8369
      @nilanjanmukhopadhyay8369 2 роки тому

      @@57skiesSeriously. Gradle sucks. It makes me hate developing on the JVM.

  • @rajeshsubramanian9692
    @rajeshsubramanian9692 3 роки тому +6

    The gradle docs are the worst.

  • @blakef.8566
    @blakef.8566 2 роки тому

    I am confused about what implementation, testImplementation and testRuntimeOnly are in build.gradle.kts. What do they represent? Are they defined by Gradle?

    • @57skies
      @57skies 2 роки тому

      yes, these are "configurations"