Skip to content

Instantly share code, notes, and snippets.

@lzimd
Created May 8, 2019 08:34
Show Gist options
  • Save lzimd/d1473c4369f641a3d8eae25611c8c74c to your computer and use it in GitHub Desktop.
Save lzimd/d1473c4369f641a3d8eae25611c8c74c to your computer and use it in GitHub Desktop.
gradle + bom ( spring boot )

examples

1

plugins {  
    id "org.springframework.boot" version "2.1.4.RELEASE"
}
apply plugin: "io.spring.dependency-management"

2

plugins {
    id "org.springframework.boot" version "2.1.4.RELEASE"
}

dependencyManagement {
	imports {
		mavenBom(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
	}
}

3 (gradle 5.0+)

plugins {
    id "org.springframework.boot" version "2.1.4.RELEASE"
}

dependencies {
    implementation platform("org.springframework.boot:spring-boot-dependencies:${springbootVersion}")
}

document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment