What is there to sort out?

git clone git://github.com/Qi4j/qi4j-sdk.git
cd qi4j-sdk
./gradlew
<wait>
<done>

Cheers
Niclas


On Mon, Nov 21, 2011 at 9:27 PM, Peter Neubauer <[email protected]> wrote:
> Ok,
> will wait until you guys have sorted out the build process. I really
> like the approach by homebrew, see
> https://github.com/mxcl/homebrew/wiki/installation which pipes a ruby
> script directly from GIThub maybe something similar for qi4j, a shell
> script?
>
> /peter
>
> On Fri, Nov 18, 2011 at 10:11 PM, Marc Grue <[email protected]> wrote:
>> Hi Niclas,
>>
>> Makes sense with the bundled gradle.
>>
>> Ahh, I found a solution:
>>
>> In order to run 'gradle idea' to create an Idea project (with all 
>> dependencies resolved), you need to use the same gradle version as the sdk 
>> build. I had updated my gradle version to milestone-6 with 'brew update 
>> gradle' and all attempts at doing 'gradle idea' failed (also with 
>> milestone-3 and milestone-5). If you don't have brew installed, see brew 
>> installation.
>>
>> So a revised step-by-step (on a mac) can be:
>>
>> 1. Download Qi4j sdk:
>> $ git clone git://github.com/Qi4j/qi4j-sdk.git
>> $ cd qi4j-sdk
>> $ ./gradlew
>>
>>
>> 2. Check your gradle version:
>> If you want to create an Idea project to work with the qi4j code base in 
>> Idea, then first check what gradle version you're using:
>> $ brew info gradle
>>
>> which will show you something like:
>>
>> gradle 1.0-milestone-6 <-- your gradle version
>> http://www.gradle.org/
>> /usr/local/Cellar/gradle/1.0-milestone-5 (86 files, 34M)
>> /usr/local/Cellar/gradle/1.0-milestone-6 (86 files, 34M) *
>> http://github.com/mxcl/homebrew/commits/master/Library/Formula/gradle.rb
>>
>>
>> 3. Check Qi4j sdk gradle version:
>> $ open build.gradle
>>
>> Search for 'gradleVersion' in text editor to see the qi4j-sdk gradle version 
>> (there's probably a faster way in the terminal to find that without opening 
>> in a text editor...).
>>
>> If your gradle version is the same as the qi4j-sdk version, go to step 5.
>>
>>
>> 4. Change/download sdk gradle version:
>> $ cd /usr/local
>> $ brew versions gradle
>>
>> (We need to be in /usr/local/ to be able to checkout git later)
>> A list of all gradle versions shows up:
>>
>> 1.0-milestone-6 git checkout dae625d /usr/local/Library/Formula/gradle.rb
>> 1.0-milestone-5 git checkout baff305 /usr/local/Library/Formula/gradle.rb
>> 1.0-milestone-3 git checkout d9f2e06 /usr/local/Library/Formula/gradle.rb
>> 1.0-milestone-4 git checkout 4b1230c /usr/local/Library/Formula/gradle.rb
>> 1.0-milestone-2 git checkout 6801464 /usr/local/Library/Formula/gradle.rb <- 
>> copy this if qi4j-sdk version is milestone-2
>> 1.0-milestone-1 git checkout 0476235 /usr/local/Library/Formula/gradle.rb
>> etc...
>>
>> $ git checkout 6801464 /usr/local/Library/Formula/gradle.rb [copied from 
>> above...]
>> $ brew upgrade gradle
>> $ brew info gradle
>>
>> Now milestone-2 should be your current version:
>>
>> gradle 1.0-milestone-2
>> http://www.gradle.org/
>> /usr/local/Cellar/gradle/1.0-milestone-2 (74 files, 30M) *
>> /usr/local/Cellar/gradle/1.0-milestone-5 (86 files, 34M)
>> /usr/local/Cellar/gradle/1.0-milestone-6 (86 files, 34M)
>> http://github.com/mxcl/homebrew/commits/master/Library/Formula/gradle.rb
>>
>>
>> 5. Build Idea project:
>> $ cd /Users/YourName/YourRepoPath/qi4j-sdk
>> $ gradle idea --info
>>
>> (--info is optional)
>>
>> This creates all Idea project and module files.
>>
>> Open Project from Idea and locate YourRepoPath/qi4j-sdk/org.qi4j.ipr and 
>> you're good to go :-)
>>
>> Maybe there's a much smarter/simpler way, but this worked for me. Hope it 
>> helps.
>>
>> Cheers,
>> Marc
>>
>> On 2011-11-18, at 15.23, Niclas Hedhman wrote:
>>
>>> 1. I actually think that the it is an excellent idea that the build
>>> system is partOf the check-out and bootstraps the right version.
>>> Imagine some years in the future, when the compatibility is all gone
>>> and you try to build it again, and have to go digging for which
>>> version could possibly have work on revision 243B4CD2314FA134... SO I
>>> would like to keep this as the default option. If it happens to work
>>> with 'gradle' that is currently installed, great, and we should try to
>>> stay up-to-date. One of the toughest points with Maven was exactly
>>> this issue of not getting a "known to work" version to build the
>>> project.
>>
>>> 2. I would love to update the documentation, but I can't get it to
>>> work from here in China on Mac using Firefox nor Safari. Rickard,
>>> Status? I guess this just stresses the urge to get the documentation
>>> system up and running. Unfortunately I lost my half-way work when I
>>> made a mistake in the "merge to SDK" work... Not a biggie, but...
>>>
>>>
>>> Cheers
>>>
>>> On Fri, Nov 18, 2011 at 9:52 PM, Marc Grue <[email protected]> wrote:
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>> 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
>>
>
> _______________________________________________
> 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

Reply via email to