Hello,
I have, in the same folder src/test/groovy:
- groovy files from Tellurium (defining my tests and ui components)
- a Java Junit test file that imports these groovy files and start the
tests.
When I compile the tests (gradle -d -b build_tellurium.gradle compileTests),
I get an error:
Compile error during compilation with javac.
myGroovyClass is not abstract and does not override abstract method
setMetaClass(groovy.lang.MetaClass) in groovy.lang.GroovyObject
The Java file however is compiled.
When I restart the compilation, keeping the Java .class file, it works.
I don't know if this is a problem in my Groovy or in my Gradle script (for
instance, the order of compilation). See my Gradle script:
usePlugin 'groovy'
sourceCompatibility = 1.5
targetCompatibility = 1.5
repositories {
mavenRepo name:'Tellurium',
urls:'http://kungfuters.org/nexus/content/repositories/releases/'
mavenRepo name:'Tellurium Third Party',
urls:'http://kungfuters.org/nexus/content/repositories/thirdparty'
mavenRepo name:'Tellurium Tellurium',
urls:'http://kungfuters.org/nexus/content/repositories/releases/tellurium'
mavenRepo name:'Tellurium Tellurium Tellurium',
urls:'http://kungfuters.org/nexus/content/repositories/releases/tellurium/tellurium'
mavenCentral()
}
dependencies {
groovy group:'org.codehaus.groovy', name: 'groovy-all', version: '1.6.+'
testCompile group: 'junit', name: 'junit', version: '4.5'
testCompile group: 'tellurium', name:'tellurium-core', version: '0.6.0'
testCompile group: 'caja', name:'json_simple', version:'r1'
testCompile group: 'org.stringtree', name:'stringtree-json', version:
'2.0.10'
}
Didn't find the solution on the forums, so any help welcome.
Thanks a lot.
--
View this message in context:
http://www.nabble.com/Cannot-compile-Groovy-Tellurium-test-files.-tp25169373p25169373.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email