Grails 2.1.0 Plugin transitive dependencies -


i have written custom plugin depends on spring-social core , spring-security core. can see below definition in dependencies.groovy in packaged zip file.

mycustompluginbuildconfig:   plugins {          build(":tomcat:$grailsversion")          compile(":spring-security-core:1.2.7.3")          compile(":spring-social-core:0.1.31") {              transitive = false          }          //checkstyle groovy          test(':codenarc:0.18')      }  

when include plugin @ runtime scope in project , run 'grails compile' cannot find spring social classes.

.grails/projects/myproject/plugins/web-application-common-paypal-access-1.0.39/src/groovy/com/mycompany/signinadapter.groovy: 3: unable resolve class grails.plugins.springsocial.signin.springsocialsimplesigninadapter   @ line 3, column 1.     import grails.plugins.springsocial.signin.springsocialsimplesigninadapter  

i not able figure out why. appreciated.

thanks, abhijith

if grails application has code references classes within plugin, or classes plugin includes due transitive dependencies, should include plugin compile time dependency instead of runtime dependency.

based on error message, signinadapter referencing springsocialsimplesigninadapter. try updating buildconfig.groovy follows:

compile ':my-social-security-plugin:0.1' 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -