Skip to content

Commit 70c61dc

Browse files
author
Steve Riesenberg
committed
Merge branch '5.6.x' into 5.7.x
2 parents e01b43f + c44230b commit 70c61dc

File tree

3 files changed

+25
-42
lines changed

3 files changed

+25
-42
lines changed

Diff for: docs/local-antora-playbook.yml

-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
antora:
33
extensions:
44
- ./antora-linked-worktree-patch.js
5-
runtime:
6-
log:
7-
format: pretty
85
site:
96
title: Spring Security
107
url: https://docs.spring.io/spring-security/reference

Diff for: docs/package.json

-8
This file was deleted.

Diff for: docs/spring-security-docs.gradle

+25-31
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,48 @@
11
plugins {
2-
id "io.github.rwinch.antora" version "0.0.2"
3-
id "org.springframework.antora.check-version"
2+
id 'org.antora' version '1.0.0-alpha.3'
3+
id 'org.springframework.antora.check-version'
44
}
55

66
apply plugin: 'io.spring.convention.docs'
77
apply plugin: 'java'
88

9-
node {
10-
version = "16.17.0"
11-
}
12-
139
antora {
14-
antoraVersion = "3.1.0"
15-
playbookFile = file("local-antora-playbook.yml")
16-
arguments = ["--clean", "--stacktrace"]
17-
}
18-
19-
tasks.antora {
20-
dependsOn "generateAntora"
10+
version = '~3.1'
11+
playbook = file('local-antora-playbook.yml')
12+
options = ['--clean', '--stacktrace']
2113
environment = [
22-
"ALGOLIA_API_KEY" : "82c7ead946afbac3cf98c32446154691",
23-
"ALGOLIA_APP_ID" : "244V8V9FGG",
24-
"ALGOLIA_INDEX_NAME" : "security-docs"
14+
'ALGOLIA_API_KEY': '82c7ead946afbac3cf98c32446154691',
15+
'ALGOLIA_APP_ID': '244V8V9FGG',
16+
'ALGOLIA_INDEX_NAME': 'security-docs'
2517
]
2618
}
2719

28-
tasks.register("generateAntora") {
29-
group = "Documentation"
30-
description = "Generates the antora.yml for dynamic properties"
20+
tasks.antora.dependsOn 'generateAntora'
21+
22+
tasks.register('generateAntora') {
23+
group = 'Documentation'
24+
description = 'Generates the antora.yml for dynamic properties'
3125
doLast {
3226
def docsTag = snapshotBuild ? 'current' : project.version
3327
def ghTag = snapshotBuild ? 'main' : project.version
3428
def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag"
35-
def ghOldSamplesUrl = "https://github.com/spring-projects/spring-security/tree/5.4.x/samples"
29+
def ghOldSamplesUrl = 'https://github.com/spring-projects/spring-security/tree/5.4.x/samples'
3630
def ghSamplesUrl = "https://github.com/spring-projects/spring-security-samples/tree/$samplesBranch"
3731
def securityDocsUrl = "https://docs.spring.io/spring-security/site/docs/$docsTag"
3832
def securityApiUrl = "$securityDocsUrl/api/"
3933
def securityReferenceUrl = "$securityDocsUrl/reference/html5/"
4034
def springFrameworkApiUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/javadoc-api/"
4135
def springFrameworkReferenceUrl = "https://docs.spring.io/spring-framework/docs/$springFrameworkVersion/reference/html/"
4236
def versions = resolvedVersions(project.configurations.testRuntimeClasspath)
43-
def ymlVersions = ""
37+
def ymlVersions = ''
4438
versions.call().each { name, version ->
4539
ymlVersions += """
4640
${name}: ${version}"""
4741
}
48-
def outputFile = new File("$buildDir/generateAntora/antora.yml")
42+
def outputFile = layout.buildDirectory.file('generateAntora/antora.yml').orNull.asFile
4943
outputFile.getParentFile().mkdirs()
5044
outputFile.createNewFile()
51-
def antoraYmlText = file("antora.yml").getText()
45+
def antoraYmlText = file('antora.yml').text.trim()
5246
outputFile.setText("""$antoraYmlText
5347
title: Spring Security
5448
start_page: ROOT:index.adoc
@@ -71,23 +65,23 @@ ${ymlVersions}
7165
}
7266

7367
dependencies {
74-
testImplementation platform(project(":spring-security-dependencies"))
75-
testImplementation "com.unboundid:unboundid-ldapsdk"
76-
testImplementation "org.apache.directory.server:apacheds-core"
77-
testImplementation "org.springframework:spring-core"
68+
testImplementation platform(project(':spring-security-dependencies'))
69+
testImplementation 'com.unboundid:unboundid-ldapsdk'
70+
testImplementation 'org.apache.directory.server:apacheds-core'
71+
testImplementation 'org.springframework:spring-core'
7872
}
7973

8074
def resolvedVersions(Configuration configuration) {
8175
return {
8276
configuration.resolvedConfiguration
8377
.resolvedArtifacts
84-
.collectEntries { [(it.name + "-version"): it.moduleVersion.id.version] }
78+
.collectEntries { [(it.name + '-version'): it.moduleVersion.id.version] }
8579
}
8680
}
8781

8882
repositories {
8983
mavenCentral()
90-
maven { url "https://repo.spring.io/release" }
91-
maven { url "https://repo.spring.io/milestone" }
92-
maven { url "https://repo.spring.io/snapshot" }
84+
maven { url 'https://repo.spring.io/release' }
85+
maven { url 'https://repo.spring.io/milestone' }
86+
maven { url 'https://repo.spring.io/snapshot' }
9387
}

0 commit comments

Comments
 (0)