Browse Source

Use explicit test dependencies in samples

pull/234/merge
Dave Syer 12 years ago
parent
commit
559f907b54
  1. 16
      spring-boot-samples/pom.xml
  2. 11
      spring-boot-samples/spring-boot-sample-actuator-log4j/pom.xml
  3. 5
      spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml
  4. 5
      spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml
  5. 5
      spring-boot-samples/spring-boot-sample-actuator/pom.xml
  6. 5
      spring-boot-samples/spring-boot-sample-amqp/pom.xml
  7. 5
      spring-boot-samples/spring-boot-sample-aop/pom.xml
  8. 5
      spring-boot-samples/spring-boot-sample-batch/pom.xml
  9. 11
      spring-boot-samples/spring-boot-sample-data-jpa/pom.xml
  10. 5
      spring-boot-samples/spring-boot-sample-data-mongodb/pom.xml
  11. 5
      spring-boot-samples/spring-boot-sample-data-redis/pom.xml
  12. 5
      spring-boot-samples/spring-boot-sample-integration/pom.xml
  13. 5
      spring-boot-samples/spring-boot-sample-jetty/pom.xml
  14. 5
      spring-boot-samples/spring-boot-sample-profile/pom.xml
  15. 5
      spring-boot-samples/spring-boot-sample-secure/pom.xml
  16. 5
      spring-boot-samples/spring-boot-sample-servlet/pom.xml
  17. 5
      spring-boot-samples/spring-boot-sample-simple/pom.xml
  18. 5
      spring-boot-samples/spring-boot-sample-tomcat/pom.xml
  19. 5
      spring-boot-samples/spring-boot-sample-traditional/pom.xml
  20. 5
      spring-boot-samples/spring-boot-sample-web-jsp/pom.xml
  21. 5
      spring-boot-samples/spring-boot-sample-web-secure/pom.xml
  22. 5
      spring-boot-samples/spring-boot-sample-web-static/pom.xml
  23. 5
      spring-boot-samples/spring-boot-sample-web-ui/pom.xml
  24. 5
      spring-boot-samples/spring-boot-sample-websocket/pom.xml
  25. 5
      spring-boot-samples/spring-boot-sample-xml/pom.xml

16
spring-boot-samples/pom.xml

@ -39,21 +39,7 @@ @@ -39,21 +39,7 @@
<module>spring-boot-sample-websocket</module>
<module>spring-boot-sample-xml</module>
</modules>
<dependencies>
<!-- Test -->
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot</artifactId>
<version>${project.version}</version>
<classifier>tests</classifier>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<!-- No dependencies - otherwise the samples won't work if you change the parent -->
<build>
<plugins>
<plugin>

11
spring-boot-samples/spring-boot-sample-actuator-log4j/pom.xml

@ -32,6 +32,17 @@ @@ -32,6 +32,17 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-log4j</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-actuator-noweb/pom.xml

@ -22,6 +22,11 @@ @@ -22,6 +22,11 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-shell-remote</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-actuator-ui/pom.xml

@ -40,6 +40,11 @@ @@ -40,6 +40,11 @@
<groupId>org.jolokia</groupId>
<artifactId>jolokia-core</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-actuator/pom.xml

@ -42,6 +42,11 @@ @@ -42,6 +42,11 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-shell-remote</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!--<dependency>
<groupId>org.crashub</groupId>
<artifactId>crash.connectors.telnet</artifactId>

5
spring-boot-samples/spring-boot-sample-amqp/pom.xml

@ -19,6 +19,11 @@ @@ -19,6 +19,11 @@
<artifactId>spring-boot-starter-amqp</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-aop/pom.xml

@ -18,6 +18,11 @@ @@ -18,6 +18,11 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-batch/pom.xml

@ -18,6 +18,11 @@ @@ -18,6 +18,11 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

11
spring-boot-samples/spring-boot-sample-data-jpa/pom.xml

@ -22,17 +22,16 @@ @@ -22,17 +22,16 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot</artifactId>
<classifier>tests</classifier>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-data-mongodb/pom.xml

@ -22,6 +22,11 @@ @@ -22,6 +22,11 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-mongodb</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-data-redis/pom.xml

@ -26,6 +26,11 @@ @@ -26,6 +26,11 @@
<groupId>com.lambdaworks</groupId>
<artifactId>lettuce</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<profiles>
<profile>

5
spring-boot-samples/spring-boot-sample-integration/pom.xml

@ -18,6 +18,11 @@ @@ -18,6 +18,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-jetty/pom.xml

@ -26,6 +26,11 @@ @@ -26,6 +26,11 @@
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-profile/pom.xml

@ -23,6 +23,11 @@ @@ -23,6 +23,11 @@
<artifactId>snakeyaml</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-secure/pom.xml

@ -19,6 +19,11 @@ @@ -19,6 +19,11 @@
<artifactId>spring-boot-starter-security</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-servlet/pom.xml

@ -29,6 +29,11 @@ @@ -29,6 +29,11 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-simple/pom.xml

@ -23,6 +23,11 @@ @@ -23,6 +23,11 @@
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-tomcat/pom.xml

@ -26,6 +26,11 @@ @@ -26,6 +26,11 @@
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-traditional/pom.xml

@ -34,6 +34,11 @@ @@ -34,6 +34,11 @@
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-web-jsp/pom.xml

@ -33,6 +33,11 @@ @@ -33,6 +33,11 @@
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-web-secure/pom.xml

@ -28,6 +28,11 @@ @@ -28,6 +28,11 @@
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring4</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-web-static/pom.xml

@ -28,6 +28,11 @@ @@ -28,6 +28,11 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-web-ui/pom.xml

@ -30,6 +30,11 @@ @@ -30,6 +30,11 @@
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-websocket/pom.xml

@ -22,6 +22,11 @@ @@ -22,6 +22,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

5
spring-boot-samples/spring-boot-sample-xml/pom.xml

@ -18,6 +18,11 @@ @@ -18,6 +18,11 @@
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>

Loading…
Cancel
Save