For background on how to use the maven integration, see Groovy-Eclipse compiler plugin for Maven. This page describes how to get started with development on the project.
Clone the git repo:
The interesting components are in the
/extras folder. There are several projects located here:
The are 2 maven artifacts required for compilation of groovy code in maven: groovy-eclipse-compiler and groovy-eclipse-batch. The first is just a thin wrapper around the compiler, and the second contains all of the files required to build. It is a bunch of Eclipse and Groovy-Eclipse jars unzipped and recombined into an uber-jar.
- Ensure that you have write privileges to the maven repos on codehaus (Guillaume should be able to help you there)
- Copy the settings-sample.xml from the repo into your ~/.m2 folder and add your user/pass
- Ensure that the version qualifier has no -SNAPSHOT
- Run from root of git repo: mvn deploy --no-plugin-updates -Pcodehaus-release -P test -f extras/groovy-eclipse-compiler/pom.xml
- As above
- As above
- Ensure version qualifier is -SNAPSHOT
- Run mvn deploy -f extras/groovy-eclipse-compiler/pom.xml
- Setup maven settings.xml as described above.
- Import this project into your eclipse: extras/groovy-eclipse-batch-builder
- Open build.properties of the project
- Update the version number(s)
- Uncomment only one of the do-xx-build options
- Update the jar.dest, eclipse.install.plugins, git.repo.loc, properties to something that makes sense for your system
- Run `ant extract-create-install` and then run the groovy-eclipse-compiler-tests to make sure passes
- Run ant extract-create-publish to push codehaus staging area.
- Use nexus ui (https://nexus.codehaus.org) to inspect staged artifacts, maybe run tests against the staged repo.
- Use nexus ui to close and publish the staged repo. Within a day it will be synched with maven central.
This build process assumes that there is an existing Eclipse installation around and that the groovy-eclipse projects have been imported into a workspace and compile successfully. The build process will be copying class files from the bin folders of the projects.
groovy-eclipse-compiler-tests project contains regression tests. This project contains a set of sample projects that invoke the compiler in different ways. Run these often, even though they don’t test everything. It would be nice to merge this project with the groovy-eclipse-compiler project, but this hasn't happened yet.
To run the integrations tests:
groovy-eclipse-maven-tests project is just a play area where I try new things out.
There are none. The person who is responsible for this should be sacked...oh wait, that was me.
There is also a groovy-eclipse-compiler archetype, but it hasn’t been maintained in a looooong time. The project is
groovy-eclipse-quickstart. It would be good to move this project into the