* Create pom.xml Initial import * First submit * Second submit * Different Types of Bean Injection in Spring * Different Types of Bean Injection in Spring * Added spring-core-di into the main build * Revert "Create pom.xml" This reverts commit 1bdc5443125df19575605f41ab28c9e8b6c69a32. * BAEL-764 Automatic Property Expansion with Spring Boot * BAEL-764 Automatic Property Expansion with Spring Boot * BAEL-764 Automatic Property Expansion with Spring Boot
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| buildscript {
 | |
|     repositories {
 | |
|         mavenCentral()
 | |
|     }
 | |
|     dependencies {
 | |
|         classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.2.RELEASE")
 | |
|     }
 | |
| }
 | |
| 
 | |
| apply plugin: 'java'
 | |
| apply plugin: 'maven'
 | |
| apply plugin: 'idea'
 | |
| apply plugin: 'org.springframework.boot'
 | |
| 
 | |
| group = 'com.baeldung'
 | |
| version = '0.0.1-SNAPSHOT'
 | |
| 
 | |
| description = """spring-boot"""
 | |
| 
 | |
| sourceCompatibility = 1.8
 | |
| targetCompatibility = 1.8
 | |
| tasks.withType(JavaCompile) {
 | |
|     options.encoding = 'UTF-8'
 | |
| }
 | |
| 
 | |
| repositories {
 | |
|     mavenCentral()
 | |
| }
 | |
| 
 | |
| import org.apache.tools.ant.filters.ReplaceTokens
 | |
| processResources {
 | |
|     with copySpec {
 | |
|         from 'src/main/resources'
 | |
|         include '**/application*.yml'
 | |
|         include '**/application*.yaml'
 | |
|         include '**/application*.properties'
 | |
|         project.properties.findAll().each { prop ->
 | |
| 
 | |
|             if (prop.value != null) {
 | |
|                 filter(ReplaceTokens, tokens: [ (prop.key): prop.value])
 | |
|                 filter(ReplaceTokens, tokens: [ ('project.' + prop.key): prop.value])
 | |
|             }
 | |
| 
 | |
|         }
 | |
|     }
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
|     compile("org.springframework.boot:spring-boot-starter")
 | |
| }
 |