diff --git a/core/core.gradle b/core/core.gradle index 152970b978..ad75e3c044 100644 --- a/core/core.gradle +++ b/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) +} \ No newline at end of file