Hello,

I use gradle to build Qi4j but when it comes to my IDE I use maven to set the 
classpaths.

When you run "gradlew install", gradle will generate pom.xml files to install 
the artifacts in your local maven repository.
I use theses pom.xml files to be able to open each module as a maven project in 
my favorite IDE (that lacks gradle support).
As theses pom.xml files only declare dependencies you still cannot build Qi4j 
from your IDE without gradle support. But at least you can open the modules, 
have the correct classpath (it means autocompletion, code navigation etc...) 
and use gradle in the command line to run the build. One more thing, all 
pom.xml files needs to be tuned a bit : set java version and file encoding is 
enough.

For example the following set of commands should work on 1.4, 1.4.1 and develop 
branches and allow you to open the core/api module:

./gradlew clean install
cp core/api/build/poms/default-pom.xml core/api/pom.xml

Be sure you don't commit the pom.xml files.

All this feels like using a steamroller to break a nut ! o_O
But, let's hope gradle support in IDEs will get better.

Hope this helps.

/Paul


Le 8 déc. 2011 à 18:11, Ming Qin a écrit :

> Niclas:
>  Thank you for replying my emails.  
> 
> 
>    I have successfully built qi4j release 1.3 in using gradlew.bat come with 
> source codes  which are obtained  from 
> http://repository.ops4j.org/maven2/org/org.qi4j/1.3/org.qi4j-1.3.src.zip). No 
> Luck on release 1.4 and 1.4.1
> 
>    For release 1.3, I try to build whole project from an IDE,  so I run a 
> command "gradlew idea" .......
> 
> 
>    Do you know which IDE has better support on gradle so qi4j can build from 
> IDE environment?
> 
>     Major IDE support very well on maven ,  so I still try to get qi4j early 
> release based on maven as build system.
> 
> 
> 
>  
> 
> Ming Qin
> Cell Phone 858-353-2839
> 
> 
> ________________________________
> From: Niclas Hedhman <[email protected]>
> To: Ming Qin <[email protected]>; [email protected] 
> Sent: Thursday, December 8, 2011 8:15 AM
> Subject: Re: [qi4j-dev] maven-based source codes in Git Repository
> 
> http://repository.op4j.org/maven is the official Maven repository for Qi4j.
> 
> You will need at least;
> 
> org.qi4j.core:org.qi4j.core.api      // most client code only depends
> on this, i.e scope = compile
> 
> org.qi4j.core:org.qi4j.core.bootstrap  // the client code that starts
> the application needs this part, scope = compile
> 
> org.qi4j.core:org.qi4j.core.spi  // extensions need this, so most of
> the time just  scope=runtime
> 
> org.qi4j.core:org.qi4j.core.runtime  // nothing should depend on this,
> scope = runtime.
> 
> The latest released version is 1.4.1
> 
> 
> The current 'develop' branch on Github contains the beginning of
> version 2.0, a major incompatibility break in many areas, to simply
> and reduce the Qi4j 'footprint' and 'impact' as well as tighter
> integration with Scala. It is not recommended yet for production
> deployments.
> To build from GitHub sources, simple run the ./gradlew script in
> qi4j-sdk repository, which now contains all the parts (no longer git
> submodules).
> 
> ./gradlew clean install
> 
> 
> Any further questions, just ask and I will try to help...
> 
> Cheers
> Niclas
> On Thu, Dec 8, 2011 at 12:04 PM, Ming Qin <[email protected]> wrote:
>> Hi:
>>    For understanding Qi4j framework design,  I refer to take a look early 
>> version of framework.
>> 
>>  I am wishing to get early maven-enable Qi4j source codes so I could build 
>> it with my familiar maven settings.  Is that public access repository 
>> contains early maven-based q14j code based?   I am comfortable with GitHub.
>> 
>> 
>> 
>> Ming Qin
>> Cell Phone 858-353-2839
>> _______________________________________________
>> qi4j-dev mailing list
>> [email protected]
>> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
> 
> 
> 
> -- 
> Niclas Hedhman, Software Developer
> http://www.qi4j.org - New Energy for Java
> 
> I live here; http://tinyurl.com/3xugrbk
> I work here; http://tinyurl.com/6a2pl4j
> I relax here; http://tinyurl.com/2cgsug
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev

--
Paul Merlin - eskatos.github.com


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to