-
-
Save kostark/dbb62d0413027b83ba7912d355a9b4de to your computer and use it in GitHub Desktop.
Gradle scripts to generate a BOM and then consume that BOM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id "io.spring.dependency-management" version "1.0.0.RC2" | |
| } | |
| project.group = com.company | |
| project.version = 1.0.0 | |
| project.ext.name = company-project | |
| dependencyManagement { | |
| imports { | |
| mavenBom('com.company:company-bom:1.0.0') { | |
| bomProperty 'spring.version', '4.0.4.RELEASE' | |
| } | |
| } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id "io.spring.dependency-management" version "1.0.0.RC2" | |
| } | |
| apply plugin: 'maven-publish' | |
| project.group = com.company | |
| project.version = 1.0.0 | |
| project.ext.name = company-bom | |
| dependencyManagement { | |
| properties { | |
| property 'spring.version:4.1.1.RELEASE' | |
| } | |
| dependencies { | |
| dependency 'org.springframework:spring-core:${spring.version}' | |
| dependency group:'commons-logging', name:'commons-logging', version:'1.1.2' | |
| } | |
| } | |
| publishing { | |
| publications { | |
| mavenJava(MavenPublication) { | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id "io.spring.dependency-management" version "1.0.0.RC2" | |
| } | |
| apply plugin: 'maven-publish' | |
| project.group = com.company | |
| project.version = 1.0.0 | |
| project.ext.name = company-bom | |
| dependencyManagement { | |
| dependencies { | |
| dependency 'org.springframework:spring-core:${spring.version}' // where do I specify a default spring.version ? | |
| dependency group:'commons-logging', name:'commons-logging', version:'1.1.2' | |
| } | |
| } | |
| publishing { | |
| publications { | |
| mavenJava(MavenPublication) { | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment