gmaven stub generation doesn't support enums and there are several
classes' constructors which are not generated correctly (doesn't call
super(...) ). Because we rewrote metaclasses in Java, the Java code
depends on the Groovy code, so joint compilation is really needed.
What's more, we have not figured out how to do integration tests in
maven(maybe we cannot do so). These make us need to move to other build
systems.
I don't think gradle is incompatibility with maven, at least it can
interact with maven repositories, which may be the only thing we need
for compatibility.
I have written a gradle build file to test our code against groovy 1.6,
and it is pretty short (much shorter than the gant build file):
usePlugin('groovy')
sourceCompatibility = 1.5
targetCompatibility = 1.5
group = 'org.gmock'
version = '0.7.0-SNAPSHOT'
srcDirNames = []
groovySrcDirNames = ['main/java', 'main/groovy']
dependencies {
addMavenRepo()
groovy "org.codehaus.groovy:groovy-all:1.6.0"
compile "junit:junit:4.5"
compile "cglib:cglib:2.2"
compile "org.objenesis:objenesis:1.1"
testCompile "org.hamcrest:hamcrest-library:1.1"
}
在 2009-03-19四的 07:15 +0000,Julien Gagnet写道: