Hi Niclas,

I think it would be great for Qi4j if we could make installing the sdk as 
smooth a process as possible which I know you're working hard on. I suppose 
that we need to update the checkout procedure on the website now after the 
merge of the repositories?

I suggest too that we make some _dead_simple_ step-by-step instructions, maybe 
along those lines:

====================
1. Download Qi4j code from github:
~ $ cd some-directory
~/some-directory $ git clone git://github.com/Qi4j/qi4j-sdk.git
~/some-directory $ cd qi4j-sdk

2. Build gradle ?... - describe what is done...
~/some-directory/qi4j-sdk $ ./gradlew

3a. Build Idea project (for browsing and testing qi4j):
~/some-directory/qi4j-sdk $ gradle idea

... or for some part of the sdk:
~/some-directory/qi4j-sdk $ cd samples/forum
~/some-directory/qi4j-sdk/samples/forum $ gradle idea

3b. Build project files for Eclipse?
... what to do?
====================

I can run step 2 with the bundled gradle (which is at milestone-2?). Do we 
really need to bundle gradle? Why not give an easy 'brew install gradle' 
instruction and a link to instructions for installing brew if necessary?

If I run 'gradle -b build.gradle'Current with my gradle milestone-6, the build 
fails:

------------------------
FAILURE: Build failed with an exception.

* Where:
Build file '/Users/marcgrue/github/qi4j-sdk/build.gradle' line: 39

* What went wrong:
A problem occurred evaluating root project 'org.qi4j'.
Cause: Could not find method getByName() for arguments [uploadArchives] on root 
project 'org.qi4j'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to 
get more log output.

BUILD FAILED
------------------------

I can run gradlew with the bundled gradle version, but then I get the same 
build failure as above when I try to do step 3a :-(

Help, what shall I do?? I want to work with Qi4j in my editor!! We need to make 
that easier! It should be a 'mac'-experience. Anything I can do?

Cheers,
Marc

On 2011-11-10, at 12.37, Niclas Hedhman wrote:

> Double-checking by running the step-by-step on 
> http://www.qi4j.org/codebase.html
> 
> git clone git://github.com/Qi4j/qi4j-sdk.git
> cd qi4j-sdk
> git submodule init
> git submodule update
> cd core
> git checkout develop
> cd ../libraries
> git checkout develop
> cd ../extensions
> git checkout develop
> cd ..
> 
> The failure is not in the build but in the check out?? Because I get
> that as well now. :-(
> 
> For some reason, 'core' is no longer created as a directory during
> "git submodule init", but libraries and extensions are!!
> 
> Instead of figuring it out; I will start to merge the repositories
> right away... Stay tuned.
> 
> 
> Niclas
> 
> On Wed, Nov 9, 2011 at 3:57 PM, Peter Neubauer <[email protected]> wrote:
>> Mmh,
>> it seems the "functional" is not there anymore?
>> 
>> * Where:
>> Settings file '/Users/peterneubauer/code/qi4j/qi4j-sdk/settings.gradle' 
>> line: 88
>> 
>> * What went wrong:
>> A problem occurred evaluating settings 'org.qi4j'.
>> Cause: assert project.projectDir.isDirectory()
>>       |       |          |
>>       |       |          false
>>       |       /Users/peterneubauer/code/qi4j/qi4j-sdk/core/functional
>>       :core:functional
>> 
>> * Try:
>> Run with --stacktrace option to get the stack trace. Run with --info
>> or --debug option to get more log output.
>> 
>> BUILD FAILED
>> 
>> Total time: 8.369 secs
>> [~/code/qi4j/qi4j-sdk] $ls
>> /Users/peterneubauer/code/qi4j/qi4j-sdk/core/functional
>> ls: /Users/peterneubauer/code/qi4j/qi4j-sdk/core/functional: No such
>> file or directory
>> [~/code/qi4j/qi4j-sdk] $ls /Users/peterneubauer/code/qi4j/qi4j-sdk/
>> .git/                NOTICE.txt           buildSrc/            gradlew
>>             maven-compat.gradle  tests/
>> .gitignore           README.txt           core/
>> gradlew.bat          release.sh           tools/
>> .gitmodules          bin/                 etc/
>> libraries/           samples/             tutorials/
>> LICENSE.txt          build.gradle         extensions/
>> libraries.gradle     settings.gradle      wrapper/
>> 
>> 
>> Also, I think you should include full build instructions (step by step).
>> 
>> /peter
>> 
>> On Fri, Nov 4, 2011 at 2:25 PM, Niclas Hedhman <[email protected]> wrote:
>>> I also suspect that you have not followed the checkout instructions on
>>> http://www.qi4j.org/codebase.html
>>> 
>>> And therefor you are missing all the sub-repositories. We have more or
>>> less agreed to merge all into a single code repository, but have not
>>> gotten around to do it just yet.
>>> 
>>> Cheers
>>> Niclas
>>> 
>>> On Fri, Nov 4, 2011 at 10:40 AM, Peter Neubauer
>>> <[email protected]> wrote:
>>>> Hi folks,
>>>> trying to build Qi4j from a clean git clone, I am getting the following 
>>>> output:
>>>> 
>>>> [~/code/qi4j/qi4j-sdk] $./gradlew
>>>> Downloading 
>>>> http://repo.gradle.org/gradle/distributions/gradle-1.0-milestone-3-bin.zip
>>>> ..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
>>>> Unzipping 
>>>> /Users/peterneubauer/.gradle/wrapper/dists/gradle-1.0-milestone-3-bin.zip
>>>> to /Users/peterneubauer/.gradle/wrapper/dists
>>>> Set executable permissions for:
>>>> /Users/peterneubauer/.gradle/wrapper/dists/gradle-1.0-milestone-3/bin/gradle
>>>> :buildSrc:clean
>>>> :buildSrc:compileJava UP-TO-DATE
>>>> :buildSrc:compileGroovy
>>>> :buildSrc:processResources UP-TO-DATE
>>>> :buildSrc:classes
>>>> :buildSrc:jar
>>>> :buildSrc:assemble
>>>> :buildSrc:compileTestJava UP-TO-DATE
>>>> :buildSrc:compileTestGroovy UP-TO-DATE
>>>> :buildSrc:processTestResources UP-TO-DATE
>>>> :buildSrc:testClasses UP-TO-DATE
>>>> :buildSrc:test
>>>> :buildSrc:check
>>>> :buildSrc:build
>>>> Project: org.qi4j
>>>> Project: org.qi4j.core
>>>> 
>>>> FAILURE: Build failed with an exception.
>>>> 
>>>> * Where:
>>>> Settings file '/Users/peterneubauer/code/qi4j/qi4j-sdk/settings.gradle' 
>>>> line: 87
>>>> 
>>>> * What went wrong:
>>>> A problem occurred evaluating settings 'org.qi4j'.
>>>> Cause: assert project.projectDir.isDirectory()
>>>>       |       |          |
>>>>       |       |          false
>>>>       |       /Users/peterneubauer/code/qi4j/qi4j-sdk/core/functional
>>>>       :core:functional
>>>> 
>>>> * Try:
>>>> Run with --stacktrace option to get the stack trace. Run with --info
>>>> or --debug option to get more log output.
>>>> 
>>>> BUILD FAILED
>>>> 
>>>> Anyone knows what could be the problem?
>>>> 
>>>> Cheers,
>>>> 
>>>> /peter neubauer
>>>> 
>>>> GTalk:      neubauer.peter
>>>> Skype       peter.neubauer
>>>> Phone       +46 704 106975
>>>> LinkedIn   http://www.linkedin.com/in/neubauer
>>>> Twitter      http://twitter.com/peterneubauer
>>>> 
>>>> http://www.neo4j.org              - NOSQL for the Enterprise.
>>>> http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
>>>> 
>>>> _______________________________________________
>>>> 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
>>> 
>> 
>> _______________________________________________
>> 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


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

Reply via email to