mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-10-31 06:38:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Groovy
		
	
	
	
	
	
| apply plugin: 'io.spring.convention.docs'
 | |
| apply plugin: 'io.spring.convention.management-configuration'
 | |
| apply plugin: 'io.spring.convention.dependency-set'
 | |
| apply plugin: 'io.spring.convention.repository'
 | |
| apply plugin: 'java'
 | |
| 
 | |
| asciidoctor {
 | |
| 	attributes([stylesheet: 'css/style.css'])
 | |
| 	resources {
 | |
| 		from(sourceDir) {
 | |
| 			include "css/**"
 | |
| 		}
 | |
| 	}
 | |
| }
 | |
| 
 | |
| asciidoctorj {
 | |
| 	def ghTag = snapshotBuild ? 'main' : project.version
 | |
| 	def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag"
 | |
| 	attributes 'spring-security-version' : project.version,
 | |
| 		'spring-boot-version' : springBootVersion,
 | |
| 		revnumber : project.version,
 | |
| 		'gh-url': ghUrl,
 | |
| 		'gh-samples-url': "$ghUrl/samples"
 | |
| 	attributeProvider resolvedVersions(project.configurations.testRuntimeClasspath)
 | |
| }
 | |
| 
 | |
| docsZip {
 | |
| 	from(project(':spring-security-docs-guides').asciidoctor) {
 | |
| 		into 'guides'
 | |
| 	}
 | |
| }
 | |
| 
 | |
| dependencies {
 | |
| 	management platform(project(":spring-security-dependencies"))
 | |
| 	testImplementation "com.unboundid:unboundid-ldapsdk"
 | |
| 	testImplementation "org.apache.directory.server:apacheds-core"
 | |
| 	testImplementation "org.springframework:spring-core"
 | |
| }
 | |
| 
 | |
| def resolvedVersions(Configuration configuration) {
 | |
| 	return {
 | |
| 		configuration.resolvedConfiguration
 | |
| 			.resolvedArtifacts
 | |
| 			.collectEntries { [(it.name + "-version"): it.moduleVersion.id.version] }
 | |
| 	}
 | |
| }
 | |
| 
 | |
| repositories {
 | |
| 	maven { url "https://repo.spring.io/release" }
 | |
| }
 |