mirror of
				https://github.com/spring-projects/spring-security.git
				synced 2025-10-30 22:28:46 +00:00 
			
		
		
		
	Add maven pom customization options to build.gradle
This commit is contained in:
		
							parent
							
								
									b147652193
								
							
						
					
					
						commit
						d39e93ec23
					
				| @ -13,7 +13,8 @@ allprojects { | |||||||
|     repositories { |     repositories { | ||||||
|         mavenRepo name:'Local', urls:'file:///Users/luke/.m2/repository' |         mavenRepo name:'Local', urls:'file:///Users/luke/.m2/repository' | ||||||
|         mavenCentral() |         mavenCentral() | ||||||
| //        mavenRepo name:'SpringSource Milestone Repo', urls:'http://repository.springsource.com/maven/bundles/milestone' |         mavenRepo name:'SpringSource Milestone Repo', urls:'http://repository.springsource.com/maven/bundles/milestone' | ||||||
|  |         mavenRepo name:'SpringSource Maven Snapshot Repo', urls:'http://maven.springframework.org/snapshot/' | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -119,6 +120,12 @@ configure(javaProjects()) { | |||||||
|                     authentication(s3credentials) |                     authentication(s3credentials) | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |             pom.whenConfigured { pom -> | ||||||
|  |                 def optionalDeps = ['commons-logging', 'ehcache', 'log4j', 'apacheds-core', 'apacheds-server-jndi', 'jsp-api', 'slf4j-api', 'slf4j-log4j12', 'jsr250-api', 'ldapsdk'] | ||||||
|  |                 def providedDeps = ['servlet-api'] | ||||||
|  |                 pom.dependencies.findAll { dep -> optionalDeps.contains(dep.artifactId) }*.optional = true | ||||||
|  |                 pom.dependencies.findAll { dep -> providedDeps.contains(dep.artifactId) }*.scope = 'provided' | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user