Parcourir la source

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

Greg Turnquist il y a 12 ans
Parent
révision
488b5d4da5
3 fichiers modifiés avec 15 ajouts et 3 suppressions
  1. 1
    1
      README.adoc
  2. 4
    0
      initial/build.gradle
  3. 10
    2
      initial/pom.xml

+ 1
- 1
README.adoc Voir le fichier

65
 include::initial/build.gradle[]
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
 [[initial]]
71
 [[initial]]

+ 4
- 0
initial/build.gradle Voir le fichier

3
         maven { url "http://repo.spring.io/libs-snapshot" }
3
         maven { url "http://repo.spring.io/libs-snapshot" }
4
         mavenLocal()
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
 apply plugin: 'java'
11
 apply plugin: 'java'
9
 apply plugin: 'eclipse'
12
 apply plugin: 'eclipse'
10
 apply plugin: 'idea'
13
 apply plugin: 'idea'
14
+apply plugin: 'spring-boot'
11
 
15
 
12
 jar {
16
 jar {
13
     baseName = 'gs-rest-service'
17
     baseName = 'gs-rest-service'

+ 10
- 2
initial/pom.xml Voir le fichier

24
         </dependency>
24
         </dependency>
25
     </dependencies>
25
     </dependencies>
26
 
26
 
27
+    <properties>
28
+        <start-class>hello.Application</start-class>
29
+    </properties>
30
+
27
     <build>
31
     <build>
28
         <plugins>
32
         <plugins>
33
+            <plugin> 
34
+                <artifactId>maven-compiler-plugin</artifactId> 
35
+                <version>2.3.2</version> 
36
+            </plugin>
29
             <plugin>
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
             </plugin>
40
             </plugin>
33
         </plugins>
41
         </plugins>
34
     </build>
42
     </build>