Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
5ded496d
Commit
5ded496d
authored
Apr 01, 2014
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test dependencies from spring-boot-starter-parent
Fixes gh-617
parent
ea2c491d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
33 deletions
+7
-33
getting-started.adoc
spring-boot-docs/src/main/asciidoc/getting-started.adoc
+3
-8
spring-boot-features.adoc
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+4
-4
using-spring-boot.adoc
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
+0
-3
pom.xml
spring-boot-starters/spring-boot-starter-parent/pom.xml
+0
-18
No files found.
spring-boot-docs/src/main/asciidoc/getting-started.adoc
View file @
5ded496d
...
@@ -203,7 +203,7 @@ endif::release[]
...
@@ -203,7 +203,7 @@ endif::release[]
dependencies {
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-web")
testCompile("
junit:juni
t")
testCompile("
org.springframework.boot:spring-boot-starter-tes
t")
}
}
----
----
...
@@ -478,16 +478,11 @@ currently have.
...
@@ -478,16 +478,11 @@ currently have.
$ mvn dependency:tree
$ mvn dependency:tree
[INFO] com.example:myproject:jar:0.0.1-SNAPSHOT
[INFO] com.example:myproject:jar:0.0.1-SNAPSHOT
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.mockito:mockito-core:jar:1.9.5:test
[INFO] | \- org.objenesis:objenesis:jar:1.0:test
[INFO] \- org.hamcrest:hamcrest-library:jar:1.3:test
----
----
The `mvn dependency:tree` command prints tree representation of your project dependencies.
The `mvn dependency:tree` command prints tree representation of your project dependencies.
You can see that `spring-boot-starter-parent`
has already provided some useful test
You can see that `spring-boot-starter-parent`
provides no
dependencies. Let's edit our `pom.xml` and add the `spring-boot-starter-web` dependency
dependencies
by itself
. Let's edit our `pom.xml` and add the `spring-boot-starter-web` dependency
just below the `parent` section:
just below the `parent` section:
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
...
...
spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
5ded496d
...
@@ -1381,19 +1381,19 @@ documentation].
...
@@ -1381,19 +1381,19 @@ documentation].
[[boot-features-testing]]
[[boot-features-testing]]
== Testing
== Testing
Spring Boot provides a number of useful tools for testing your application. The
Spring Boot provides a number of useful tools for testing your application. The
`spring-boot-starter-
parent` POM provides JUnit, Hamcrest and Mockito ``test'' `scope`
`spring-boot-starter-
test` POM provides Spring Test, JUnit, Hamcrest and Mockito
dependencies. There are also useful test utilities in the core `spring-boot` module
dependencies. There are also useful test utilities in the core `spring-boot` module
under the `org.springframework.boot.test` package. There is also a
under the `org.springframework.boot.test` package.
`spring-boot-starter-test` ``Starter POM''.
[[boot-features-test-scope-dependencies]]
[[boot-features-test-scope-dependencies]]
=== Test scope dependencies
=== Test scope dependencies
If you
extend your Maven project from the `spring-boot-starter-parent` POM, or
use the
If you use the
`spring-boot-starter-test` ``Starter POM'' (in the `test` `scope`), you will find
`spring-boot-starter-test` ``Starter POM'' (in the `test` `scope`), you will find
the following provided libraries:
the following provided libraries:
* Spring Test -- integration test support for Spring applications.
* Junit -- The de-facto standard for unit testing Java applications.
* Junit -- The de-facto standard for unit testing Java applications.
* Hamcrest -- A library of matcher objects (also known as constraints or predicates)
* Hamcrest -- A library of matcher objects (also known as constraints or predicates)
allowing `assertThat` style JUnit assertions.
allowing `assertThat` style JUnit assertions.
...
...
spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc
View file @
5ded496d
...
@@ -36,9 +36,6 @@ defaults. The parent project provides the following features:
...
@@ -36,9 +36,6 @@ defaults. The parent project provides the following features:
* UTF-8 source encoding.
* UTF-8 source encoding.
* A Dependency Management section, allowing you to omit `<version>` tags for common
* A Dependency Management section, allowing you to omit `<version>` tags for common
dependencies.
dependencies.
* Generally useful test dependencies (http://junit.org/[JUnit],
https://code.google.com/p/hamcrest/[Hamcrest],
https://code.google.com/p/mockito/[Mockito]).
* Sensible https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html[resource filtering].
* Sensible https://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html[resource filtering].
* Sensible plugin configuration (http://mojo.codehaus.org/exec-maven-plugin/[exec plugin],
* Sensible plugin configuration (http://mojo.codehaus.org/exec-maven-plugin/[exec plugin],
http://maven.apache.org/surefire/maven-surefire-plugin/[surefire],
http://maven.apache.org/surefire/maven-surefire-plugin/[surefire],
...
...
spring-boot-starters/spring-boot-starter-parent/pom.xml
View file @
5ded496d
...
@@ -158,24 +158,6 @@
...
@@ -158,24 +158,6 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
</dependencyManagement>
</dependencyManagement>
<dependencies>
<!-- Generally Useful Test Dependencies -->
<dependency>
<groupId>
junit
</groupId>
<artifactId>
junit
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.mockito
</groupId>
<artifactId>
mockito-core
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.hamcrest
</groupId>
<artifactId>
hamcrest-library
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
<build>
<build>
<!-- Turn on filtering by default for application properties -->
<!-- Turn on filtering by default for application properties -->
<resources>
<resources>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment