-
-
Save thekalinga/9d25e092e52d947c931d03aeaf23414f to your computer and use it in GitHub Desktop.
Spring Boot with overridden Spring Version (with dependency management)
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
buildscript { | |
ext { | |
springBootVersion = '1.2.5.RELEASE' | |
} | |
ext['spring.version'] = '4.2.1.RELEASE' | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
classpath("io.spring.gradle:dependency-management-plugin:0.5.3.RELEASE") | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'spring-boot' | |
apply plugin: 'io.spring.dependency-management' | |
jar { | |
baseName = 'demo' | |
version = '0.0.1-SNAPSHOT' | |
} | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
compile("org.springframework.boot:spring-boot-starter-web") | |
testCompile("org.springframework.boot:spring-boot-starter-test") | |
} | |
dependencyManagement { | |
imports { | |
mavenBom 'io.spring.platform:platform-bom:1.1.3.RELEASE' | |
} | |
} | |
task wrapper(type: Wrapper) { | |
gradleVersion = '2.6' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment