Harmonize indent

Spring Initializr mostly uses tabs but some files were inconsistently
using spaces. This commit harmonizes the templates so that any generated
project uses tabs consistently.
This commit is contained in:
Stephane Nicoll
2015-12-29 16:12:47 +01:00
parent b60ae74daf
commit 96288888dc
3 changed files with 34 additions and 34 deletions

View File

@@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration<% } %>
@EnableAutoConfiguration <% } %> @EnableAutoConfiguration <% } %>
class ${applicationName} { class ${applicationName} {
static void main(String[] args) { static void main(String[] args) {
SpringApplication.run ${applicationName}, args SpringApplication.run ${applicationName}, args
} }
} }

View File

@@ -12,7 +12,7 @@ import org.springframework.context.annotation.Configuration;<% } %>
@EnableAutoConfiguration <% } %> @EnableAutoConfiguration <% } %>
public class ${applicationName} { public class ${applicationName} {
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(${applicationName}.class, args); SpringApplication.run(${applicationName}.class, args);
} }
} }

View File

@@ -1,16 +1,16 @@
buildscript { buildscript {
ext { ext {
springBootVersion = '${bootVersion}' springBootVersion = '${bootVersion}'
} }
repositories { repositories {
mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %> mavenCentral()<% if (!bootVersion.contains("RELEASE")) { %>
maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }<% } %> maven { url "https://repo.spring.io/milestone" }<% } %>
} }
dependencies { dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:\${springBootVersion}") <% if (!bootOneThreeAvailable) { %> classpath("org.springframework.boot:spring-boot-gradle-plugin:\${springBootVersion}") <% if (!bootOneThreeAvailable) { %>
classpath('io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE')<% } %> classpath('io.spring.gradle:dependency-management-plugin:0.5.4.RELEASE')<% } %>
} }
} }
apply plugin: '${language}'<% if (packaging=='war') { %> apply plugin: '${language}'<% if (packaging=='war') { %>
@@ -23,28 +23,28 @@ apply plugin: 'war'
<% } %> <% } %>
<% if (packaging=='war') { %>war<% } else { %>jar<% } %> { <% if (packaging=='war') { %>war<% } else { %>jar<% } %> {
baseName = '${artifactId}' baseName = '${artifactId}'
version = '${version}' version = '${version}'
} }
sourceCompatibility = ${javaVersion} sourceCompatibility = ${javaVersion}
targetCompatibility = ${javaVersion} targetCompatibility = ${javaVersion}
repositories { repositories {
mavenCentral()<% if (repositories) { repositories.each { key, repo -> %> mavenCentral()<% if (repositories) { repositories.each { key, repo -> %>
maven { url "${repo.url}" }<% }} %> maven { url "${repo.url}" }<% }} %>
} }
<% if (providedDependencies) { %>configurations { <% if (providedDependencies) { %>configurations {
providedRuntime providedRuntime
} }
<% } %> <% } %>
dependencies {<% compileDependencies.each { %> dependencies {<% compileDependencies.each { %>
compile('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %><% if (language=='groovy') { %> compile('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %><% if (language=='groovy') { %>
compile('org.codehaus.groovy:groovy')<% } %><% runtimeDependencies.each { %> compile('org.codehaus.groovy:groovy')<% } %><% runtimeDependencies.each { %>
runtime('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %><% providedDependencies.each { %> runtime('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %><% providedDependencies.each { %>
providedRuntime('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %> providedRuntime('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %>
testCompile('org.springframework.boot:spring-boot-starter-test') <% testDependencies.each { %> testCompile('org.springframework.boot:spring-boot-starter-test') <% testDependencies.each { %>
testCompile('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %> testCompile('${it.groupId}:${it.artifactId}${it.version ? ":$it.version" : ""}')<% } %>
} }
<% if (boms) { %> <% if (boms) { %>
dependencyManagement { dependencyManagement {
@@ -55,12 +55,12 @@ dependencyManagement {
<% } %> <% } %>
eclipse { eclipse {
classpath { classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER') containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-${javaVersion}' containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-${javaVersion}'
} }
} }
task wrapper(type: Wrapper) { task wrapper(type: Wrapper) {
gradleVersion = '2.9' gradleVersion = '2.9'
} }