Skip to content

Commit

Permalink
Add messaging to documentation about sample migration
Browse files Browse the repository at this point in the history
Closes gh-9815
  • Loading branch information
marcusdacoregio committed Jun 21, 2021
1 parent b73104c commit 425d008
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docs/guides/spring-security-docs-guides.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ asciidoctor {
baseDir = file('src/docs/asciidoc')
options eruby: 'erubis'

def ghTag = snapshotBuild ? 'main' : project.version
def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$ghTag"
attributes copycss : '',
icons : 'font',
'source-highlighter': 'prettify',
Expand All @@ -17,7 +19,9 @@ asciidoctor {
'spring-security-version' : project.version,
'download-url' : getDownloadUrl(),
'include-maven-repository' : getMavenRepositoryInclude(),
revnumber : project.version
revnumber : project.version,
'gh-samples-url': ghSamplesUrl,
'gh-old-samples-url': "https://github.com/spring-projects/spring-security/tree/5.4.x/samples"
}

ext.spec = copySpec {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ This section outlines how to setup a workspace within https://spring.io/tools/st

=== Obtaining the sample project

Extract the {download-url}[Spring Security Distribution] to a known location and remember it as _SPRING_SECURITY_HOME_.
Clone the {gh-samples-url}[Spring Security Samples project] to a known location and remember it as _SPRING_SECURITY_HOME_.
[NOTE]
====
These samples are being migrated to a separate project, however, you can still find
the not migrated samples in an older branch of the {gh-old-samples-url}[Spring Security repository].
====

=== Import the {starter-appname} sample application

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ This section outlines how to setup a workspace within https://spring.io/tools/st

=== Obtaining the sample project

Extract the {download-url}[Spring Security Distribution] to a known location and remember it as _SPRING_SECURITY_HOME_.
Clone the {gh-samples-url}[Spring Security Samples project] to a known location and remember it as _SPRING_SECURITY_HOME_.
[NOTE]
====
These samples are being migrated to a separate project, however, you can still find
the not migrated samples in an older branch of the {gh-old-samples-url}[Spring Security repository].
====

=== Import the {starter-appname} sample application

Expand Down
5 changes: 4 additions & 1 deletion docs/manual/spring-security-docs-manual.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ asciidoctor {
asciidoctorj {
def ghTag = snapshotBuild ? 'main' : project.version
def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag"
def ghOldSamplesUrl = "https://github.com/spring-projects/spring-security/tree/5.4.x/samples"
def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$ghTag"
attributes 'spring-security-version' : project.version,
'spring-boot-version' : springBootVersion,
revnumber : project.version,
'gh-url': ghUrl,
'gh-samples-url': "$ghUrl/samples"
'gh-samples-url': ghSamplesUrl,
'gh-old-samples-url': ghOldSamplesUrl
attributeProvider resolvedVersions(project.configurations.testRuntimeClasspath)
}

Expand Down
6 changes: 6 additions & 0 deletions docs/manual/src/docs/asciidoc/_includes/about/samples.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
= Samples

Spring Security includes many {gh-samples-url}[samples] applications.

[NOTE]
====
These samples are being migrated to a separate project, however, you can still find
the not migrated samples in an older branch of the {gh-old-samples-url}[Spring Security repository].
====

0 comments on commit 425d008

Please sign in to comment.