Check out example codes for "dependencymanagement imports mavenbom". It will help you in understanding the concepts better.

Code Example 1

dependencies {
    compile 'org.springframework:spring-core'
}Copy

Code Example 2

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath "io.spring.gradle:dependency-management-plugin:0.5.1.RELEASE"
  }
}

apply plugin: "io.spring.dependency-management"Copy

Code Example 3

dependencyManagement {
  imports {
    mavenBom 'io.spring.platform:platform-bom:1.1.1.RELEASE'
  }
}Copy

Learn ReactJs, React Native from akashmittal.com