Просмотр исходного кода

Move final build file to the beginning and update guides to reflect this

Greg Turnquist 12 лет назад
Родитель
Сommit
488b5d4da5
3 измененных файлов: 15 добавлений и 3 удалений
  1. 1
    1
      README.adoc
  2. 4
    0
      initial/build.gradle
  3. 10
    2
      initial/pom.xml

+ 1
- 1
README.adoc Просмотреть файл

@@ -65,7 +65,7 @@ include::https://raw.github.com/spring-guides/getting-started-macros/master/crea
65 65
 include::initial/build.gradle[]
66 66
 ----
67 67
 
68
-include::https://raw.github.com/spring-guides/getting-started-macros/master/bootstrap_starter_pom_disclaimer.adoc[]
68
+include::https://raw.github.com/spring-guides/getting-started-macros/master/spring-boot-gradle-plugin.adoc[]
69 69
 
70 70
 
71 71
 [[initial]]

+ 4
- 0
initial/build.gradle Просмотреть файл

@@ -3,11 +3,15 @@ buildscript {
3 3
         maven { url "http://repo.spring.io/libs-snapshot" }
4 4
         mavenLocal()
5 5
     }
6
+    dependencies {
7
+        classpath("org.springframework.boot:spring-boot-gradle-plugin:1.0.0.RC3")
8
+    }
6 9
 }
7 10
 
8 11
 apply plugin: 'java'
9 12
 apply plugin: 'eclipse'
10 13
 apply plugin: 'idea'
14
+apply plugin: 'spring-boot'
11 15
 
12 16
 jar {
13 17
     baseName = 'gs-rest-service'

+ 10
- 2
initial/pom.xml Просмотреть файл

@@ -24,11 +24,19 @@
24 24
         </dependency>
25 25
     </dependencies>
26 26
 
27
+    <properties>
28
+        <start-class>hello.Application</start-class>
29
+    </properties>
30
+
27 31
     <build>
28 32
         <plugins>
33
+            <plugin> 
34
+                <artifactId>maven-compiler-plugin</artifactId> 
35
+                <version>2.3.2</version> 
36
+            </plugin>
29 37
             <plugin>
30
-                <artifactId>maven-compiler-plugin</artifactId>
31
-                <version>2.3.2</version>
38
+                <groupId>org.springframework.boot</groupId>
39
+                <artifactId>spring-boot-maven-plugin</artifactId>
32 40
             </plugin>
33 41
         </plugins>
34 42
     </build>