Browse Source

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

Greg Turnquist 10 years ago
parent
commit
9e74715034
2 changed files with 27 additions and 1 deletions
  1. 9
    1
      initial/build.gradle
  2. 18
    0
      initial/pom.xml

+ 9
- 1
initial/build.gradle View File

24
 }
24
 }
25
 
25
 
26
 dependencies {
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
     testCompile("junit:junit")
36
     testCompile("junit:junit")
29
 }
37
 }
30
 
38
 

+ 18
- 0
initial/pom.xml View File

14
     </parent>
14
     </parent>
15
 
15
 
16
     <dependencies>
16
     <dependencies>
17
+	    <!-- tag::jetty[] -->
17
         <dependency>
18
         <dependency>
18
             <groupId>org.springframework.boot</groupId>
19
             <groupId>org.springframework.boot</groupId>
19
             <artifactId>spring-boot-starter-web</artifactId>
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
         </dependency>
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
     </dependencies>
39
     </dependencies>
22
 
40
 
23
     <properties>
41
     <properties>