Last active
May 22, 2018 12:49
-
-
Save sairamkrish/2091ca0c4c26224004666809d55428bf to your computer and use it in GitHub Desktop.
Sample gradle build
This file contains 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 = '2.0.2.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | |
} | |
} | |
apply plugin: 'java' | |
apply plugin: 'eclipse' | |
apply plugin: 'org.springframework.boot' | |
apply plugin: 'io.spring.dependency-management' | |
group = 'com.sample.company' | |
version = '0.0.1-SNAPSHOT' | |
sourceCompatibility = 8 | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
ext { | |
springCloudVersion = 'Finchley.RC1' | |
speed = project.hasProperty('speed') ? project.getProperty('speed') : false | |
offlineCompile = new File("$buildDir/output/lib") | |
} | |
dependencies { | |
implementation('org.springframework.boot:spring-boot-starter-actuator') | |
implementation('org.springframework.boot:spring-boot-starter-data-mongodb-reactive') | |
implementation('org.springframework.boot:spring-boot-starter-data-redis-reactive') | |
implementation('org.springframework.boot:spring-boot-starter-webflux') | |
implementation('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client') | |
compileOnly('org.projectlombok:lombok') | |
testImplementation('org.springframework.boot:spring-boot-starter-test') | |
testImplementation('io.projectreactor:reactor-test') | |
} | |
dependencyManagement { | |
imports { | |
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment