Polish gradle examples
Spaces -> Tabs, version number, whitespace.
This commit is contained in:
		
							parent
							
								
									338b32ebdb
								
							
						
					
					
						commit
						632af6b1ab
					
				| 
						 | 
					@ -2,13 +2,13 @@ buildscript {
 | 
				
			||||||
	ext {
 | 
						ext {
 | 
				
			||||||
		springBootVersion = '1.0.0.BUILD-SNAPSHOT'
 | 
							springBootVersion = '1.0.0.BUILD-SNAPSHOT'
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
    repositories {
 | 
						repositories {
 | 
				
			||||||
    	mavenLocal()
 | 
							mavenLocal()
 | 
				
			||||||
        maven { url "http://repo.spring.io/libs-snapshot" }
 | 
							maven { url "http://repo.spring.io/libs-snapshot" }
 | 
				
			||||||
    }
 | 
						}
 | 
				
			||||||
    dependencies {
 | 
						dependencies {
 | 
				
			||||||
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
 | 
							classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
 | 
				
			||||||
    }
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
apply plugin: 'java'
 | 
					apply plugin: 'java'
 | 
				
			||||||
| 
						 | 
					@ -17,14 +17,14 @@ apply plugin: 'idea'
 | 
				
			||||||
apply plugin: 'spring-boot'
 | 
					apply plugin: 'spring-boot'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jar {
 | 
					jar {
 | 
				
			||||||
    baseName = 'spring-boot-sample-actuator'
 | 
						baseName = 'spring-boot-sample-actuator'
 | 
				
			||||||
    version =  '1.0.0'
 | 
						version =  '0.0.0'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repositories {
 | 
					repositories {
 | 
				
			||||||
    mavenLocal()
 | 
						mavenLocal()
 | 
				
			||||||
    mavenCentral()
 | 
						mavenCentral()
 | 
				
			||||||
    maven { url "http://repo.spring.io/libs-snapshot" }
 | 
						maven { url "http://repo.spring.io/libs-snapshot" }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
| 
						 | 
					@ -32,13 +32,13 @@ dependencies {
 | 
				
			||||||
		insecure.exclude module: 'spring-boot-starter-security'
 | 
							insecure.exclude module: 'spring-boot-starter-security'
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    compile("org.springframework.boot:spring-boot-starter-actuator")
 | 
						compile("org.springframework.boot:spring-boot-starter-actuator")
 | 
				
			||||||
    compile("org.springframework.boot:spring-boot-starter-security")
 | 
						compile("org.springframework.boot:spring-boot-starter-security")
 | 
				
			||||||
    compile("org.springframework.boot:spring-boot-starter-web")
 | 
						compile("org.springframework.boot:spring-boot-starter-web")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    testCompile("org.springframework.boot:spring-boot-starter-test")
 | 
						testCompile("org.springframework.boot:spring-boot-starter-test")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    insecure configurations.runtime
 | 
						insecure configurations.runtime
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Slightly odd requirement (package a jar file as an insecure app, exlcuding Spring Security)
 | 
					// Slightly odd requirement (package a jar file as an insecure app, exlcuding Spring Security)
 | 
				
			||||||
| 
						 | 
					@ -48,5 +48,5 @@ springBoot {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
task wrapper(type: Wrapper) {
 | 
					task wrapper(type: Wrapper) {
 | 
				
			||||||
    gradleVersion = '1.6'
 | 
						gradleVersion = '1.6'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -2,37 +2,36 @@ buildscript {
 | 
				
			||||||
	ext {
 | 
						ext {
 | 
				
			||||||
		springBootVersion = '1.0.0.BUILD-SNAPSHOT'
 | 
							springBootVersion = '1.0.0.BUILD-SNAPSHOT'
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
    repositories {
 | 
						repositories {
 | 
				
			||||||
    	mavenLocal()
 | 
							mavenLocal()
 | 
				
			||||||
        maven { url "http://repo.spring.io/libs-snapshot" }
 | 
							maven { url "http://repo.spring.io/libs-snapshot" }
 | 
				
			||||||
    }
 | 
						}
 | 
				
			||||||
    dependencies {
 | 
						dependencies {
 | 
				
			||||||
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
 | 
							classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
 | 
				
			||||||
    }
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
apply plugin: 'java'
 | 
					apply plugin: 'java'
 | 
				
			||||||
apply plugin: 'eclipse'
 | 
					apply plugin: 'eclipse'
 | 
				
			||||||
apply plugin: 'idea'
 | 
					apply plugin: 'idea'
 | 
				
			||||||
apply plugin: 'spring-boot'
 | 
					apply plugin: 'spring-boot'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jar {
 | 
					jar {
 | 
				
			||||||
    baseName = 'spring-boot-sample-simple'
 | 
						baseName = 'spring-boot-sample-simple'
 | 
				
			||||||
    version =  '1.0.0'
 | 
						version =  '0.0.0'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repositories {
 | 
					repositories {
 | 
				
			||||||
    mavenLocal()
 | 
						mavenLocal()
 | 
				
			||||||
    mavenCentral()
 | 
						mavenCentral()
 | 
				
			||||||
    maven { url "http://repo.spring.io/libs-snapshot" }
 | 
						maven { url "http://repo.spring.io/libs-snapshot" }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
    compile("org.springframework.boot:spring-boot-starter")
 | 
						compile("org.springframework.boot:spring-boot-starter")
 | 
				
			||||||
    testCompile("org.springframework.boot:spring-boot-starter-test")
 | 
						testCompile("org.springframework.boot:spring-boot-starter-test")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
task wrapper(type: Wrapper) {
 | 
					task wrapper(type: Wrapper) {
 | 
				
			||||||
    gradleVersion = '1.6'
 | 
						gradleVersion = '1.6'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,7 +22,7 @@ mainClassName = "sample.ui.SampleWebStaticApplication"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
war {
 | 
					war {
 | 
				
			||||||
	baseName = 'spring-boot-sample-web-static'
 | 
						baseName = 'spring-boot-sample-web-static'
 | 
				
			||||||
	version =  '0.5.0'
 | 
						version =  '0.0.0'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repositories {
 | 
					repositories {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@ mainClassName = "sample.ui.SampleWebUiApplication"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jar {
 | 
					jar {
 | 
				
			||||||
	baseName = 'spring-boot-sample-web-ui'
 | 
						baseName = 'spring-boot-sample-web-ui'
 | 
				
			||||||
	version =  '0.5.0'
 | 
						version =  '0.0.0'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
repositories {
 | 
					repositories {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue