The Gradle build configuration

Let's see the following configuration:

apply plugin: 'java' 
apply plugin: 'eclipse' 
apply plugin: 'org.springframework.boot' 
apply plugin: 'io.spring.dependency-management' 
 
group = 'com.dineshonjava' 
version = '0.0.1-SNAPSHOT' 
sourceCompatibility = 1.8 
 
repositories { 
   mavenCentral() 
   maven { url "https://repo.spring.io/snapshot" } 
   maven { url "https://repo.spring.io/milestone" } 
} 
 
 
ext { 
   springCloudVersion = 'Finchley.M7' 
} 
 
dependencies { 
   compile('org.springframework.boot:spring-boot-starter-web') 
   compile('org.springframework.cloud:spring-cloud-starter-netflix-eureka-client') 
   testCompile('org.springframework.boot:spring-boot-starter-test') 
} 
 
dependencyManagement { 
   imports { 
         mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" 
   } 
} 

This file has dependencies for the Spring web module and the Spring cloud Netflix Eureka client module. Now let's register this client with Eureka.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.237.201