Hi Szczepan,
I have to take it back... I think there was something wrong in the previous
code that led me to this conclusion while I was trying to create my first
compile code in Gradle while Merlyn was just giving directions :D... I just
deleted the "main" block, and the code compiled without a problem!!! :) See
below...
sourceSets {
jpa {
java {
srcDir '/development/src/main/java'
include '**/domain/*'
}
}
}
So, the code is beautiful... After understanding and getting the idea of
Gradle and comparing with an ANT build.xml or a MAVEN pom.xml, Gradle is
magical... I was in love with Grails GANT, but this is awesome!
I have a feedback for the dev/docs team... please provide as many examples
as possible in the documentation for the tasks... Or open the documentation
for user's contributed examples known to be working in the current or
previous revisions... I understand the product is still M3, but it would
help us (community) a lot to learn and adopt... :D Maybe to the level, or
better one, when compared to the Apache ANT documentation... Each task has
lots of examples related to the task...
I'm pushing Gradle to be the replacement for an OLD, VERY OLD build system
built on top of (ANT + Python - Maven)... A nightmare to extend and add
dependencies... I love the tight integration with Maven + Ivy, and how easy
it is once you get the idea... Getting a complete sub-project in a Jar and
Maven: 2 minutes of copy and paste? Change the dependencies list? I have
already created 3 build.gradle for 3 different projects, adjusted the
sourceSets with where the source directory is located (yes, code written
even without the Maven src structure)... I don't even feel like sleeping
anymore :P
thanks a lot!!!
Marcello
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Javac-Java-Annotation-Processor-Maven-classpath-dependencies-in-Gradle-tp4626751p4634174.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