瀏覽代碼

Add crypto as an exported dependency of core in IDEA configuration.

Luke Taylor 14 年之前
父節點
當前提交
361b77685d
共有 1 個文件被更改,包括 9 次插入1 次删除
  1. 9 1
      core/core.gradle

+ 9 - 1
core/core.gradle

@@ -5,7 +5,8 @@ def cryptoProject = project(':spring-security-crypto')
 def cryptoClasses = cryptoProject.sourceSets.main.classes
 
 dependencies {
-    compile 'aopalliance:aopalliance:1.0',
+    compile cryptoProject,
+            'aopalliance:aopalliance:1.0',
             "net.sf.ehcache:ehcache:$ehcacheVersion",
             "org.springframework:spring-aop:$springVersion",
             "org.springframework:spring-beans:$springVersion",
@@ -43,3 +44,10 @@ test {
     systemProperties['springSecurityVersion'] = version
     systemProperties['springVersion'] = springVersion
 }
+
+// Add the crypto module in the IDE
+ideaModule {
+    def cryptoDep = new org.gradle.plugins.ide.idea.model.ModuleDependency('spring-security-crypto', 'COMPILE')
+    cryptoDep.exported = true
+    module.dependencies.add(cryptoDep)
+}