瀏覽代碼

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

Greg Turnquist 10 年之前
父節點
當前提交
9e74715034
共有 2 個檔案被更改,包括 27 行新增1 行删除
  1. 9
    1
      initial/build.gradle
  2. 18
    0
      initial/pom.xml

+ 9
- 1
initial/build.gradle 查看文件

@@ -24,7 +24,15 @@ repositories {
24 24
 }
25 25
 
26 26
 dependencies {
27
-    compile("org.springframework.boot:spring-boot-starter-web")
27
+    // tag::jetty[]
28
+    compile("org.springframework.boot:spring-boot-starter-web") {
29
+        exclude module: "spring-boot-starter-tomcat"
30
+    }
31
+    compile("org.springframework.boot:spring-boot-starter-jetty")
32
+    // end::jetty[]
33
+    // tag::actuator[]
34
+    compile("org.springframework.boot:spring-boot-starter-actuator")
35
+    // end::actuator[]
28 36
     testCompile("junit:junit")
29 37
 }
30 38
 

+ 18
- 0
initial/pom.xml 查看文件

@@ -14,10 +14,28 @@
14 14
     </parent>
15 15
 
16 16
     <dependencies>
17
+	    <!-- tag::jetty[] -->
17 18
         <dependency>
18 19
             <groupId>org.springframework.boot</groupId>
19 20
             <artifactId>spring-boot-starter-web</artifactId>
21
+            <exclusions>
22
+                <exclusion>
23
+                    <groupId>org.springframework.boot</groupId>
24
+                    <artifactId>spring-boot-starter-tomcat</artifactId>
25
+                </exclusion>
26
+	    </exclusions>
20 27
         </dependency>
28
+        <dependency>
29
+            <groupId>org.springframework.boot</groupId>
30
+            <artifactId>spring-boot-starter-jetty</artifactId>
31
+        </dependency>
32
+        <!-- end::jetty[] -->
33
+        <!-- tag::actuator[] -->
34
+        <dependency>
35
+            <groupId>org.springframework.boot</groupId>
36
+            <artifactId>spring-boot-starter-actuator</artifactId>
37
+        </dependency>
38
+        <!-- end::actuator[] -->
21 39
     </dependencies>
22 40
 
23 41
     <properties>