| 
									
										
										
										
											2017-03-28 15:45:30 -05:00
										 |  |  | apply plugin: 'io.spring.convention.docs' | 
					
						
							| 
									
										
										
										
											2021-04-05 10:14:13 -05:00
										 |  |  | apply plugin: 'io.spring.convention.management-configuration' | 
					
						
							| 
									
										
										
										
											2020-01-13 15:46:32 -06:00
										 |  |  | apply plugin: 'io.spring.convention.dependency-set' | 
					
						
							|  |  |  | apply plugin: 'io.spring.convention.repository' | 
					
						
							|  |  |  | apply plugin: 'java' | 
					
						
							| 
									
										
										
										
											2017-03-28 15:45:30 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-28 13:52:43 -06:00
										 |  |  | asciidoctor { | 
					
						
							|  |  |  | 	attributes([stylesheet: 'css/style.css']) | 
					
						
							|  |  |  | 	resources { | 
					
						
							|  |  |  | 		from(sourceDir) { | 
					
						
							|  |  |  | 			include "css/**" | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-10 14:54:20 -06:00
										 |  |  | asciidoctorj { | 
					
						
							| 
									
										
										
										
											2021-04-26 16:50:35 -05:00
										 |  |  | 	def ghTag = snapshotBuild ? 'main' : project.version | 
					
						
							| 
									
										
										
										
											2017-03-28 15:45:30 -05:00
										 |  |  | 	def ghUrl = "https://github.com/spring-projects/spring-security/tree/$ghTag" | 
					
						
							|  |  |  | 	attributes 'spring-security-version' : project.version, | 
					
						
							| 
									
										
										
										
											2019-11-26 08:38:08 -06:00
										 |  |  | 		'spring-boot-version' : springBootVersion, | 
					
						
							| 
									
										
										
										
											2017-03-28 15:45:30 -05:00
										 |  |  | 		revnumber : project.version, | 
					
						
							|  |  |  | 		'gh-url': ghUrl, | 
					
						
							|  |  |  | 		'gh-samples-url': "$ghUrl/samples" | 
					
						
							| 
									
										
										
										
											2021-04-04 07:31:47 -05:00
										 |  |  | 	attributeProvider resolvedVersions(project.configurations.testRuntimeClasspath) | 
					
						
							| 
									
										
										
										
											2017-03-28 15:45:30 -05:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2018-01-30 15:35:30 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | docsZip { | 
					
						
							|  |  |  | 	from(project(':spring-security-docs-guides').asciidoctor) { | 
					
						
							|  |  |  | 		into 'guides' | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2020-01-13 15:46:32 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | dependencies { | 
					
						
							| 
									
										
										
										
											2021-04-04 19:36:21 -05:00
										 |  |  | 	management platform(project(":spring-security-dependencies")) | 
					
						
							| 
									
										
										
										
											2021-04-04 07:31:47 -05:00
										 |  |  | 	testImplementation "com.unboundid:unboundid-ldapsdk" | 
					
						
							|  |  |  | 	testImplementation "org.apache.directory.server:apacheds-core" | 
					
						
							|  |  |  | 	testImplementation "org.springframework:spring-core" | 
					
						
							| 
									
										
										
										
											2020-01-13 15:46:32 -06:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def resolvedVersions(Configuration configuration) { | 
					
						
							|  |  |  | 	return { | 
					
						
							|  |  |  | 		configuration.resolvedConfiguration | 
					
						
							|  |  |  | 			.resolvedArtifacts | 
					
						
							|  |  |  | 			.collectEntries { [(it.name + "-version"): it.moduleVersion.id.version] } | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2021-01-19 22:50:43 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | repositories { | 
					
						
							|  |  |  | 	maven { url "https://repo.spring.io/release" } | 
					
						
							|  |  |  | } |