I'm just a newbie myself, but it looks like your code depends on log4j but that you don't have the dependency in your build file.

-Paul

Roger Studner wrote:
This is my dependencies from my build.gradle:

dependencies {
    groovy 'org.codehaus.groovy:groovy:1.6.5'
compile 'org.springframework:spring:2.5.6' compile group: 'org.slf4j', name: 'slf4j-api', version: '1.5.2'
    compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.5.2'
compile group: 'org.hibernate', name: 'ejb3-persistence', version: '1.0.2.GA' compile group: 'org.hibernate', name: 'hibernate-annotations', version: '3.4.0.GA'
    compile group: 'org.hibernate', name: 'hibernate', version: '3.2.1.ga'
compile group: 'org.hibernate', name: 'hibernate-entitymanager', version: '3.4.0.GA' compile group: 'org.hibernate', name: 'hibernate-commons-annotations', version: '3.3.0.ga'
    compile group: 'dom4j', name: 'dom4j', version: '1.6.1'
    compile group: 'org.apache.poi', name:'poi', version:'3.5-FINAL'
compile group: 'org.apache.poi', name:'poi-contrib', version:'3.5-FINAL' compile group: 'org.apache.poi', name:'poi-scratchpad', version:'3.5-FINAL' testCompile group:'junit', name:'junit', version:'3.8.2'
    testCompile group: 'junit', name: 'junit', version: '4.+'
}

I've tried compile vs testCompile for both junit lines... I've tried using one and not the other.

What I do gradle build, in the compileGroovy step (it is a mixed java/groovy project) I see these (many):

/Users/someone/com/project/src/main/groovy/com/project//excel/Workbook.groovy: 41: unable to resolve class org.apache.log4j.Logger
 @ line 41, column 7.
         logger.error(e1);
Every class that uses it, has this error.

Any ideas :)?

Thanks,
Roger



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to