2017-03-28 16:45:30 -04:00
|
|
|
apply plugin: 'io.spring.convention.docs'
|
|
|
|
|
|
|
|
asciidoctor {
|
|
|
|
def ghTag = snapshotBuild ? 'master' : project.version
|
|
|
|
def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag"
|
|
|
|
attributes 'spring-security-version' : project.version,
|
|
|
|
'spring-version' : project(':spring-security-core').dependencyManagement.managedVersions['org.springframework:spring-core'],
|
2019-11-26 09:38:08 -05:00
|
|
|
'spring-boot-version' : springBootVersion,
|
2017-03-28 16:45:30 -04:00
|
|
|
revnumber : project.version,
|
|
|
|
'gh-url': ghUrl,
|
|
|
|
'gh-samples-url': "$ghUrl/samples"
|
|
|
|
}
|
2018-01-30 16:35:30 -05:00
|
|
|
|
2020-06-25 12:34:46 -04:00
|
|
|
remotes {
|
|
|
|
docs {
|
|
|
|
retryCount = 5 // retry 5 times (default is 0)
|
|
|
|
retryWaitSec = 10 // wait 10 seconds between retries (default is 0)
|
2021-04-27 11:25:48 -04:00
|
|
|
host = "docs-ip.spring.io"
|
2020-06-25 12:34:46 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-01-30 16:35:30 -05:00
|
|
|
docsZip {
|
|
|
|
from(project(':spring-security-docs-guides').asciidoctor) {
|
|
|
|
into 'guides'
|
|
|
|
}
|
|
|
|
}
|