Hi Bert,
On May 9, 2008, at 9:57 AM, Bert van Brakel wrote:
If I currently have a project in maven (1 or 2) and I want to
switch to
using gradle, are there any tools for this?
It would be great if gradle just looks for a pom.xml and simply
runs a maven
like build. It would certainly help to convince maven users to
migrate to
gradle if there is zero effort to transition. Over time more stuff
could be
added to the gradlefile. Maybe the gradlefile could be auto
generated from
an existing pom (even if just in memory)?
I'm thinking along the lines of introducing gradle by stealth.
Leave the
existing maven stuff there, which continues to work, but add my own
extra
spice in using gradle. I'm hesitant to spend heaps of time
replicating all
the info in the poms, and keep them in sync.
Such functionality is not implemented yet but we plan to this very
soon. Similar to what you have proposed we want to offer 2 things:
Using an existing pom.file: We plan to make only use of the
dependency information in the pom.file. The pom would be used in a
way that you can additionally declare dependencies in the gradle
build script if wanted. We are not sure what to do with parent poms
as Gradle has its own multi-project build structure. It seems hard to
map them to each other.
Transform the pom file: A functionality that creates a gradlefile out
of a pom.
It is an interesting use case we haven't thought of to use Gradle to
add functionality on an existing and still in use Maven build. For
simple Maven builds I see no problem, if the poms use inheritance and
are part of a multiproject build things look more complicated.
We want to provide this functionality for 0.2.
- Hans
Thoughts, ideas, RTFM welcome
--
View this message in context: http://www.nabble.com/Out-of-the-box-
maven-support--tp17143114p17143114.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
--
Hans Dockter
Gradle Project lead
http://www.gradle.org