45 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| buildscript {
 | |
|     ext {
 | |
|         springBootVersion = '2.0.0.RELEASE'
 | |
|     }
 | |
|     repositories {
 | |
|         mavenCentral()
 | |
|     }
 | |
|     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 = 'org.baeldung'
 | |
| version = '0.0.1-SNAPSHOT'
 | |
| sourceCompatibility = 1.8
 | |
| 
 | |
| repositories {
 | |
|     mavenCentral()
 | |
| }
 | |
| 
 | |
| 
 | |
| dependencies {
 | |
|     compile('org.springframework.boot:spring-boot-starter')
 | |
|     testCompile('org.springframework.boot:spring-boot-starter-test')
 | |
| }
 | |
| 
 | |
| springBoot {
 | |
|     mainClassName = 'org.baeldung.DemoApplication'
 | |
| }
 | |
| 
 | |
| bootJar {
 | |
| //    This is overridden by the mainClassName in springBoot{} and added here for reference purposes.
 | |
|     mainClassName = 'org.baeldung.DemoApplication'
 | |
| 
 | |
| //    This block serves the same purpose as the above thus commented out. Added here for reference purposes
 | |
| //    manifest {
 | |
| //        attributes 'Start-Class': 'org.baeldung.DemoApplication'
 | |
| //    }
 | |
| }
 |