Update samples to declare repository already added
This commit is contained in:
parent
6be4de854a
commit
548ed4e14a
|
@ -1,6 +1,6 @@
|
|||
== Securing the application
|
||||
|
||||
Before securing your application, it is important to ensure that the existing application works as we did in <<running-the-{starter-appname}-application>>. Now that the application runs without security, we are ready to add security to our application. This section demonstrates the minimal steps to add Spring Security to a Spring MVC application.
|
||||
Before securing your application, it is important to ensure that the existing application works as we did in <<running-the-{starter-appname}-application>>. Now that the application runs without security, we are ready to add security to our application. This section demonstrates the minimal steps to add Spring Security to our application.
|
||||
|
||||
=== Updating your dependencies
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
In order to resolve Spring Security milestones and release candidates add the Spring Milestone repository as shown below:
|
||||
In order to resolve Spring Security milestones and release candidates add the Spring Milestone repository. For our example, the repository has already been added for you. In the event you were working on another application, you would need to ensure you add the following to your pom:
|
||||
|
||||
.pom.xml
|
||||
[source,xml]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
In order to resolve Spring Security SNAPSHOT dependencies add the Spring Snapshot repository as shown below:
|
||||
In order to resolve Spring Security SNAPSHOT dependencies add the Spring Snapshot repository. For our example, the repository has already been added for you. In the event you were working on another application, you would need to ensure you add the following to your pom:
|
||||
|
||||
.pom.xml
|
||||
[source,xml]
|
||||
|
|
|
@ -65,7 +65,7 @@ def customizePom(pom, gradleProject) {
|
|||
developer {
|
||||
id = 'rwinch'
|
||||
name = 'Rob Winch'
|
||||
email = 'rwinch@vmware.com'
|
||||
email = 'rwinch@gopivotal.com'
|
||||
}
|
||||
}
|
||||
if(isWar) {
|
||||
|
@ -73,11 +73,18 @@ def customizePom(pom, gradleProject) {
|
|||
'm2eclipse.wtp.contextRoot' '/' + project.war.baseName
|
||||
}
|
||||
}
|
||||
if(!project.releaseBuild) {
|
||||
if(project.snapshotBuild) {
|
||||
repositories {
|
||||
repository {
|
||||
id 'spring-snasphot'
|
||||
url 'http://repo.springsource.org/libs-snapshot'
|
||||
url 'https://repo.spring.io/snapshot'
|
||||
}
|
||||
}
|
||||
} else if(!project.releaseBuild) {
|
||||
repositories {
|
||||
repository {
|
||||
id 'spring-milestone'
|
||||
url 'https://repo.spring.io/milestone'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue