Selaa lähdekoodia

Convert to spring-package-maven-plugin and Spring Zero

Greg Turnquist 13 vuotta sitten
vanhempi
commit
1036bc5faf
4 muutettua tiedostoa jossa 16 lisäystä ja 16 poistoa
  1. 5
    5
      README.md
  2. 6
    6
      complete/pom.xml
  3. 1
    1
      complete/src/main/java/hello/Application.java
  4. 4
    4
      initial/pom.xml

+ 5
- 5
README.md Näytä tiedosto

@@ -80,15 +80,15 @@ In a project directory of your choosing, create the following subdirectory struc
80 80
     <version>0.1.0</version>
81 81
 
82 82
     <parent>
83
-        <groupId>org.springframework.bootstrap</groupId>
84
-        <artifactId>spring-bootstrap-starters</artifactId>
83
+        <groupId>org.springframework.zero</groupId>
84
+        <artifactId>spring-starter-parent</artifactId>
85 85
         <version>0.5.0.BUILD-SNAPSHOT</version>
86 86
     </parent>
87 87
 
88 88
     <dependencies>
89 89
         <dependency>
90
-            <groupId>org.springframework.bootstrap</groupId>
91
-            <artifactId>spring-bootstrap-web-starter</artifactId>
90
+            <groupId>org.springframework.zero</groupId>
91
+            <artifactId>spring-starter-web</artifactId>
92 92
         </dependency>
93 93
         <dependency>
94 94
             <groupId>com.fasterxml.jackson.core</groupId>
@@ -225,8 +225,8 @@ Although it is possible to package this service as a traditional [WAR][u-war] fi
225 225
 ```java
226 226
 package hello;
227 227
 
228
+import org.springframework.autoconfigure.EnableAutoConfiguration;
228 229
 import org.springframework.bootstrap.SpringApplication;
229
-import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration;
230 230
 import org.springframework.context.annotation.ComponentScan;
231 231
 
232 232
 @ComponentScan

+ 6
- 6
complete/pom.xml Näytä tiedosto

@@ -8,15 +8,15 @@
8 8
     <version>0.1.0</version>
9 9
 
10 10
     <parent>
11
-        <groupId>org.springframework.bootstrap</groupId>
12
-        <artifactId>spring-bootstrap-starters</artifactId>
11
+        <groupId>org.springframework.zero</groupId>
12
+        <artifactId>spring-starter-parent</artifactId>
13 13
         <version>0.5.0.BUILD-SNAPSHOT</version>
14 14
     </parent>
15 15
 
16 16
     <dependencies>
17 17
         <dependency>
18
-            <groupId>org.springframework.bootstrap</groupId>
19
-            <artifactId>spring-bootstrap-web-starter</artifactId>
18
+            <groupId>org.springframework.zero</groupId>
19
+            <artifactId>spring-starter-web</artifactId>
20 20
         </dependency>
21 21
         <dependency>
22 22
             <groupId>com.fasterxml.jackson.core</groupId>
@@ -31,8 +31,8 @@
31 31
     <build>
32 32
         <plugins>
33 33
             <plugin>
34
-                <groupId>org.apache.maven.plugins</groupId>
35
-                <artifactId>maven-shade-plugin</artifactId>
34
+                <groupId>org.springframework.zero</groupId>
35
+                <artifactId>spring-package-maven-plugin</artifactId>
36 36
             </plugin>
37 37
         </plugins>
38 38
     </build>

+ 1
- 1
complete/src/main/java/hello/Application.java Näytä tiedosto

@@ -1,7 +1,7 @@
1 1
 package hello;
2 2
 
3
+import org.springframework.autoconfigure.EnableAutoConfiguration;
3 4
 import org.springframework.bootstrap.SpringApplication;
4
-import org.springframework.bootstrap.context.annotation.EnableAutoConfiguration;
5 5
 import org.springframework.context.annotation.ComponentScan;
6 6
 
7 7
 @ComponentScan

+ 4
- 4
initial/pom.xml Näytä tiedosto

@@ -8,15 +8,15 @@
8 8
     <version>0.1.0</version>
9 9
 
10 10
     <parent>
11
-        <groupId>org.springframework.bootstrap</groupId>
12
-        <artifactId>spring-bootstrap-starters</artifactId>
11
+        <groupId>org.springframework.zero</groupId>
12
+        <artifactId>spring-starter-parent</artifactId>
13 13
         <version>0.5.0.BUILD-SNAPSHOT</version>
14 14
     </parent>
15 15
 
16 16
     <dependencies>
17 17
         <dependency>
18
-            <groupId>org.springframework.bootstrap</groupId>
19
-            <artifactId>spring-bootstrap-web-starter</artifactId>
18
+            <groupId>org.springframework.zero</groupId>
19
+            <artifactId>spring-starter-web</artifactId>
20 20
         </dependency>
21 21
         <dependency>
22 22
             <groupId>com.fasterxml.jackson.core</groupId>