Skip to content

Instantly share code, notes, and snippets.

@7u4
Forked from lzimd/Introduction.md
Created June 30, 2022 10:52
Show Gist options
  • Save 7u4/70d0648e40e810aade32e8693e7741dd to your computer and use it in GitHub Desktop.
Save 7u4/70d0648e40e810aade32e8693e7741dd 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