Creating a dists task for a multi-project build

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating a dists task for a multi-project build

Allan Lewis
Hi,

I have a multi-project build, and at the end, I'd like to to gather up all of the JARs and other artifacts and piece them into a release ZIP file.  How do I create a task that will only be called once (from the root project) after the libs task has created for the rest of my tasks?  I've tried creating a new task in the top-level Gradle buildfile, but the problem I'm facing is that the new task is getting called for each suproject.

Thanks
Allan
Reply | Threaded
Open this post in threaded view
|

Re: Creating a dists task for a multi-project build

hans_d
Administrator
Hi Allan,

good to hear from you :)

On Aug 9, 2008, at 4:44 AM, Allan Lewis wrote:

>
> Hi,
>
> I have a multi-project build, and at the end, I'd like to to gather  
> up all
> of the JARs and other artifacts and piece them into a release ZIP  
> file.  How
> do I create a task that will only be called once (from the root  
> project)
> after the libs task has created for the rest of my tasks?  I've tried
> creating a new task in the top-level Gradle buildfile, but the  
> problem I'm
> facing is that the new task is getting called for each suproject.

Here a solution based on a sample multi-project build. You can find  
this sample build in GRADLE_HOME/samples/javaproject.

You need to replace the build.gradle file of the javaproject with  
this one:

dependsOnChildren()
project('services').dependsOnChildren() // The services project has  
no build file. To keep things simple we configure it from here.

project.group = 'org.gradle'
project.version = '1.0'

allprojects {
     usePlugin('java')
     dependencies {
         addMavenRepo()
         testCompile('junit:junit:4.4')
     }
     manifest.mainAttributes(provider: 'gradle')
     sourceCompatibility = 1.5
     targetCompatibility = 1.5
}

createTask('ueberZip') {
        List archiveFiles = []
        subprojects.each { Project project ->
                project.libs.archiveTasks.each { archiveTask ->
                        archiveFiles << archiveTask.archivePath
                }
        }
        archive_zip.files(archiveFiles as File[])
}

dists.zip().dependsOn 'ueberZip'

It is interesting to look on the dependencies of this multi-project  
build. At configuration time the subprojects depends on the root  
project. This means the root project build file must be evaluated  
before the subproject build files. Otherwise evaluating the build  
file of for example the api subproject would throw an exception, as  
line 11 (libs.jar(appendix: 'spi')) assumes that the Java plugin has  
been applied and thus the libs task is available. You don't have to  
do anything to make Gradle works this way as it the default that the  
parent project build files get evaluated before the child project  
build files (but this is customizable behavior).

At execution time we have an opposite situation. We want that the  
subproject tasks to be executed (to produce there archives) before we  
execute the root project tasks. In other situations we might need a  
different behavior. For example the root project is supposed to  
produce something which is needed by the subprojects.  To express our  
requirements we must declare in the rootproject: dependsOnChildren().  
As this is a nested mulit-project build we have to do the same for  
the services project.

Then we create a zip task for the root-project. We add all the  
archives from the libs bundles of the subprojects to it. We need to  
do this of course after the subproject build files have been  
evaluated (where possibly archive tasks are created). Therefore we do  
this at execution time in an action.

I hope this makes sense.

The example above does not work with 0.2 although the general  
approach would be the same. We use the modified Bundle API in 0.3 to  
do things here. I'm out of office from tonight until next Friday. You  
can expect the 0.3 release to happen short after I return. As the 0.3  
release is almost done, I gonna upload a 0.3-snapshot today with an  
uptodate user's guide. Of course you might as well use HEAD.

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Creating a dists task for a multi-project build

Allan Lewis
Hans,

I'm giving your suggestion a try, but without much success.  As soon as I add dependsOnChildren() to my root build.gradle:

dependsOnChildren()

allprojects {
        usePlugin('groovy')
  sourceCompatibility = 1.5
        targetCompatibility = 1.5
        group = 'org.koiosframework'
        version = '0.1'
       
        dependencies {
                addFlatDirResolver('lib', new File(rootDir, 'lib'))
               
                compile 'commons-lang:commons-lang:2.4@jar',
                        'commons-logging:commons-logging:1.1.1@jar',
                        'commons-digester:commons-digester:1.8@jar',
                        'commons-collections:commons-collections:3.2.1@jar',
                        'commons-beanutils:commons-beanutils:1.7.0@jar'
                       
                testCompile 'junit:junit:4.4@jar'
        }
}

If I do nothing else and try to run 'gradle clean test', I get the following error (using last week's snapshot).  A little background on my setup - I have the following projects:

root
    koios-generator
    koios-mda
    koios-model
    koios-standalone (depends on generator and model)
    koios-unit-test (depends on mda and standalone)

Build Output:

Buildfilename: build.gradle
Timing: Loading script from cache took: 0.0 secs
Timing: Evaluating settings file took: 0.0 secs
No build sources found.
:: loading settings :: url = jar:file:/C:/Program%20Files/gradle-0.3-080809150030+0200/lib/ivy-2.0.0.rc1_20080716132100_r677238.ja
r!/org/apache/ivy/core/settings/ivysettings.xml
:: resolving dependencies :: org.gradle#build;SNAPSHOT
        confs: [build]
Adding to classpath: C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar
++ Loading Project objects
Timing: Loading projects took: 0.047 secs
++ Configuring Project objects
Timing: Loading script from cache took: 0.015 secs
Timing: Running the build script took 0.969 secs
Project= : evaluated.
Timing: Project evaluation took 0.969 secs
Timing: Loading script from cache took: 0.0 secs
Timing: Running the build script took 0.015 secs
Project= :koios-generator evaluated.
Timing: Project evaluation took 0.015 secs
Timing: Loading script from cache took: 0.0 secs
Timing: Running the build script took 0.016 secs
Project= :koios-mda evaluated.
Timing: Project evaluation took 0.016 secs
Timing: Loading script from cache took: 0.015 secs
Timing: Running the build script took 0.015 secs
Project= :koios-model evaluated.
Timing: Project evaluation took 0.015 secs
Timing: Loading script from cache took: 0.016 secs
Timing: Running the build script took 0.016 secs
Project= :koios-standalone evaluated.
Timing: Project evaluation took 0.032 secs
Timing: Loading script from cache took: 0.0 secs
Timing: Running the build script took 0.015 secs
Project= :koios-unit-test evaluated.
Timing: Project evaluation took 0.015 secs
Timing: Configuring projects took 1.062 secs
++++ Starting build for primary task 'clean'.
Timing: Creating the DAG took 0.0 secs
Executing: :koios-generator:clean
Executing: :koios-mda:clean
Executing: :koios-model:clean
Executing: :koios-standalone:clean
Executing: :koios-unit-test:clean
Executing: :clean
Timing: Executing the DAG took 0.0 secs
DAG must not be rebuild as the task chain before was dag neutral!
++++ Starting build for primary task 'test'.
Timing: Creating the DAG took 0.031 secs
Executing: :koios-generator:init
Executing: :koios-mda:init
Executing: :koios-model:init
Executing: :koios-standalone:init
Executing: :koios-unit-test:init
Executing: :init
Executing: :koios-generator:resources
Executing: :koios-mda:resources
     [copy] Copying 21 files to C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\koios-mda\build\classes
Executing: :koios-model:resources
Executing: :koios-standalone:resources
Executing: :koios-unit-test:resources
:: resolving dependencies :: org.koiosframework#koios-unit-test;0.1
        confs: [testRuntime]
        found commons-lang#commons-lang;2.4 in lib
        found commons-logging#commons-logging;1.1.1 in lib
        found commons-digester#commons-digester;1.8 in lib
        found commons-collections#commons-collections;3.2.1 in lib
        found commons-beanutils#commons-beanutils;1.7.0 in lib
        found junit#junit;4.4 in lib
        found hsqldb#hsqldb;1.8.0.7 in lib

:: problems summary ::
:::: WARNINGS
                module not found: org.koiosframework#koios-mda;0.1

        ==== clientModule: tried

        ==== build-resolver: tried

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-resolver/org.koiosframework/koios-mda/0.1/
ivys/ivy.xml

          -- artifact org.koiosframework#koios-mda;0.1!koios-mda.jar:

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-resolver/org.koiosframework/koios-mda/0.1/
jars/koios-mda.jar

        ==== lib: tried

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\lib/ivy-0.1.xml

          -- artifact org.koiosframework#koios-mda;0.1!koios-mda.jar:

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\lib/koios-mda-0.1.jar

                module not found: org.koiosframework#koios-standalone;0.1

        ==== clientModule: tried

        ==== build-resolver: tried

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-resolver/org.koiosframework/koios-standalo
ne/0.1/ivys/ivy.xml

          -- artifact org.koiosframework#koios-standalone;0.1!koios-standalone.jar:

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-resolver/org.koiosframework/koios-standalo
ne/0.1/jars/koios-standalone.jar

        ==== lib: tried

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\lib/ivy-0.1.xml

          -- artifact org.koiosframework#koios-standalone;0.1!koios-standalone.jar:

          C:\Documents and Settings\Allan\Workspace\koios-framework-trunk\lib/koios-standalone-0.1.jar
Reply | Threaded
Open this post in threaded view
|

Re: Creating a dists task for a multi-project build

hans_d
Administrator
Hi Allan,

is it possible for you to attach the complete multi-project build?  
You might also send it to my private address. I have no idea yet  
where the problem is. If sending this is not possible I would try to  
create a similar multiproject build to reproduce this error.

- Hans

On Aug 13, 2008, at 3:23 AM, Allan Lewis wrote:

>
> Hans,
>
> I'm giving your suggestion a try, but without much success.  As  
> soon as I
> add dependsOnChildren() to my root build.gradle:
>
> dependsOnChildren()
>
> allprojects {
> usePlugin('groovy')
>   sourceCompatibility = 1.5
> targetCompatibility = 1.5
> group = 'org.koiosframework'
> version = '0.1'
>
> dependencies {
> addFlatDirResolver('lib', new File(rootDir, 'lib'))
>
> compile 'commons-lang:commons-lang:2.4@jar',
>        'commons-logging:commons-logging:1.1.1@jar',
>        'commons-digester:commons-digester:1.8@jar',
>        'commons-collections:commons-collections:3.2.1@jar',
>        'commons-beanutils:commons-beanutils:1.7.0@jar'
>
> testCompile 'junit:junit:4.4@jar'
> }
> }
>
> If I do nothing else and try to run 'gradle clean test', I get the  
> following
> error (using last week's snapshot).  A little background on my  
> setup - I
> have the following projects:
>
> root
>     koios-generator
>     koios-mda
>     koios-model
>     koios-standalone (depends on generator and model)
>     koios-unit-test (depends on mda and standalone)
>
> Build Output:
>
> Buildfilename: build.gradle
> Timing: Loading script from cache took: 0.0 secs
> Timing: Evaluating settings file took: 0.0 secs
> No build sources found.
> :: loading settings :: url =
> jar:file:/C:/Program%20Files/gradle-0.3-080809150030+0200/lib/
> ivy-2.0.0.rc1_20080716132100_r677238.ja
> r!/org/apache/ivy/core/settings/ivysettings.xml
> :: resolving dependencies :: org.gradle#build;SNAPSHOT
>         confs: [build]
> Adding to classpath: C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar
> ++ Loading Project objects
> Timing: Loading projects took: 0.047 secs
> ++ Configuring Project objects
> Timing: Loading script from cache took: 0.015 secs
> Timing: Running the build script took 0.969 secs
> Project= : evaluated.
> Timing: Project evaluation took 0.969 secs
> Timing: Loading script from cache took: 0.0 secs
> Timing: Running the build script took 0.015 secs
> Project= :koios-generator evaluated.
> Timing: Project evaluation took 0.015 secs
> Timing: Loading script from cache took: 0.0 secs
> Timing: Running the build script took 0.016 secs
> Project= :koios-mda evaluated.
> Timing: Project evaluation took 0.016 secs
> Timing: Loading script from cache took: 0.015 secs
> Timing: Running the build script took 0.015 secs
> Project= :koios-model evaluated.
> Timing: Project evaluation took 0.015 secs
> Timing: Loading script from cache took: 0.016 secs
> Timing: Running the build script took 0.016 secs
> Project= :koios-standalone evaluated.
> Timing: Project evaluation took 0.032 secs
> Timing: Loading script from cache took: 0.0 secs
> Timing: Running the build script took 0.015 secs
> Project= :koios-unit-test evaluated.
> Timing: Project evaluation took 0.015 secs
> Timing: Configuring projects took 1.062 secs
> ++++ Starting build for primary task 'clean'.
> Timing: Creating the DAG took 0.0 secs
> Executing: :koios-generator:clean
> Executing: :koios-mda:clean
> Executing: :koios-model:clean
> Executing: :koios-standalone:clean
> Executing: :koios-unit-test:clean
> Executing: :clean
> Timing: Executing the DAG took 0.0 secs
> DAG must not be rebuild as the task chain before was dag neutral!
> ++++ Starting build for primary task 'test'.
> Timing: Creating the DAG took 0.031 secs
> Executing: :koios-generator:init
> Executing: :koios-mda:init
> Executing: :koios-model:init
> Executing: :koios-standalone:init
> Executing: :koios-unit-test:init
> Executing: :init
> Executing: :koios-generator:resources
> Executing: :koios-mda:resources
>      [copy] Copying 21 files to C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\koios-mda\build\classes
> Executing: :koios-model:resources
> Executing: :koios-standalone:resources
> Executing: :koios-unit-test:resources
> :: resolving dependencies :: org.koiosframework#koios-unit-test;0.1
>         confs: [testRuntime]
>         found commons-lang#commons-lang;2.4 in lib
>         found commons-logging#commons-logging;1.1.1 in lib
>         found commons-digester#commons-digester;1.8 in lib
>         found commons-collections#commons-collections;3.2.1 in lib
>         found commons-beanutils#commons-beanutils;1.7.0 in lib
>         found junit#junit;4.4 in lib
>         found hsqldb#hsqldb;1.8.0.7 in lib
>
> :: problems summary ::
> :::: WARNINGS
>                 module not found: org.koiosframework#koios-mda;0.1
>
>         ==== clientModule: tried
>
>         ==== build-resolver: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-mda/0.1/
> ivys/ivy.xml
>
>           -- artifact org.koiosframework#koios-mda;0.1!koios-mda.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-mda/0.1/
> jars/koios-mda.jar
>
>         ==== lib: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/ivy-0.1.xml
>
>           -- artifact org.koiosframework#koios-mda;0.1!koios-mda.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/koios-mda-0.1.jar
>
>                 module not found: org.koiosframework#koios-
> standalone;0.1
>
>         ==== clientModule: tried
>
>         ==== build-resolver: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-standalo
> ne/0.1/ivys/ivy.xml
>
>           -- artifact
> org.koiosframework#koios-standalone;0.1!koios-standalone.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-standalo
> ne/0.1/jars/koios-standalone.jar
>
>         ==== lib: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/ivy-0.1.xml
>
>           -- artifact
> org.koiosframework#koios-standalone;0.1!koios-standalone.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/koios-
> standalone-0.1.jar
> --
> View this message in context: http://www.nabble.com/Creating-a- 
> dists-task-for-a-multi-project-build-tp18901701p18955451.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





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Creating a dists task for a multi-project build

hans_d
Administrator
In reply to this post by Allan Lewis
Hi Allan,

what is happening in the  :koios-unit-test:resources task? It looks  
like you are doing a resolve there which includes resolving the  
project dependency to mda and standalone. At the time the resolve is  
executed those two projects haven't been build yet. Therefore the  
jars can't be found and the build fails. If you declare a library  
dependencies between projects this dependency belongs to a certain  
configuration which again is associated with a certain task. For  
example the compile configuration is associated with the compile  
task. The mechanism is such that only if the compile task is executed  
the libraries of the project dependencies of the compile  
configuration are actually produced.

One could argue that an explicit resolve request should trigger the  
generation of the libraries in any case. We plan to do some fine  
tuning of our dependency management  in 0.4. For now one way of  
solving this is to say in koios-unit-test:

dependencies {
        linkConfWithTask('compile', 'resources')
}

My advise is based on a remote diagnosis. Hopefully it targets the  
right thing.

- Hans

On Aug 13, 2008, at 3:23 AM, Allan Lewis wrote:

>
> Hans,
>
> I'm giving your suggestion a try, but without much success.  As  
> soon as I
> add dependsOnChildren() to my root build.gradle:
>
> dependsOnChildren()
>
> allprojects {
> usePlugin('groovy')
>   sourceCompatibility = 1.5
> targetCompatibility = 1.5
> group = 'org.koiosframework'
> version = '0.1'
>
> dependencies {
> addFlatDirResolver('lib', new File(rootDir, 'lib'))
>
> compile 'commons-lang:commons-lang:2.4@jar',
>        'commons-logging:commons-logging:1.1.1@jar',
>        'commons-digester:commons-digester:1.8@jar',
>        'commons-collections:commons-collections:3.2.1@jar',
>        'commons-beanutils:commons-beanutils:1.7.0@jar'
>
> testCompile 'junit:junit:4.4@jar'
> }
> }
>
> If I do nothing else and try to run 'gradle clean test', I get the  
> following
> error (using last week's snapshot).  A little background on my  
> setup - I
> have the following projects:
>
> root
>     koios-generator
>     koios-mda
>     koios-model
>     koios-standalone (depends on generator and model)
>     koios-unit-test (depends on mda and standalone)
>
> Build Output:
>
> Buildfilename: build.gradle
> Timing: Loading script from cache took: 0.0 secs
> Timing: Evaluating settings file took: 0.0 secs
> No build sources found.
> :: loading settings :: url =
> jar:file:/C:/Program%20Files/gradle-0.3-080809150030+0200/lib/
> ivy-2.0.0.rc1_20080716132100_r677238.ja
> r!/org/apache/ivy/core/settings/ivysettings.xml
> :: resolving dependencies :: org.gradle#build;SNAPSHOT
>         confs: [build]
> Adding to classpath: C:\Program Files\Java\jdk1.6.0_06\lib\tools.jar
> ++ Loading Project objects
> Timing: Loading projects took: 0.047 secs
> ++ Configuring Project objects
> Timing: Loading script from cache took: 0.015 secs
> Timing: Running the build script took 0.969 secs
> Project= : evaluated.
> Timing: Project evaluation took 0.969 secs
> Timing: Loading script from cache took: 0.0 secs
> Timing: Running the build script took 0.015 secs
> Project= :koios-generator evaluated.
> Timing: Project evaluation took 0.015 secs
> Timing: Loading script from cache took: 0.0 secs
> Timing: Running the build script took 0.016 secs
> Project= :koios-mda evaluated.
> Timing: Project evaluation took 0.016 secs
> Timing: Loading script from cache took: 0.015 secs
> Timing: Running the build script took 0.015 secs
> Project= :koios-model evaluated.
> Timing: Project evaluation took 0.015 secs
> Timing: Loading script from cache took: 0.016 secs
> Timing: Running the build script took 0.016 secs
> Project= :koios-standalone evaluated.
> Timing: Project evaluation took 0.032 secs
> Timing: Loading script from cache took: 0.0 secs
> Timing: Running the build script took 0.015 secs
> Project= :koios-unit-test evaluated.
> Timing: Project evaluation took 0.015 secs
> Timing: Configuring projects took 1.062 secs
> ++++ Starting build for primary task 'clean'.
> Timing: Creating the DAG took 0.0 secs
> Executing: :koios-generator:clean
> Executing: :koios-mda:clean
> Executing: :koios-model:clean
> Executing: :koios-standalone:clean
> Executing: :koios-unit-test:clean
> Executing: :clean
> Timing: Executing the DAG took 0.0 secs
> DAG must not be rebuild as the task chain before was dag neutral!
> ++++ Starting build for primary task 'test'.
> Timing: Creating the DAG took 0.031 secs
> Executing: :koios-generator:init
> Executing: :koios-mda:init
> Executing: :koios-model:init
> Executing: :koios-standalone:init
> Executing: :koios-unit-test:init
> Executing: :init
> Executing: :koios-generator:resources
> Executing: :koios-mda:resources
>      [copy] Copying 21 files to C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\koios-mda\build\classes
> Executing: :koios-model:resources
> Executing: :koios-standalone:resources
> Executing: :koios-unit-test:resources
> :: resolving dependencies :: org.koiosframework#koios-unit-test;0.1
>         confs: [testRuntime]
>         found commons-lang#commons-lang;2.4 in lib
>         found commons-logging#commons-logging;1.1.1 in lib
>         found commons-digester#commons-digester;1.8 in lib
>         found commons-collections#commons-collections;3.2.1 in lib
>         found commons-beanutils#commons-beanutils;1.7.0 in lib
>         found junit#junit;4.4 in lib
>         found hsqldb#hsqldb;1.8.0.7 in lib
>
> :: problems summary ::
> :::: WARNINGS
>                 module not found: org.koiosframework#koios-mda;0.1
>
>         ==== clientModule: tried
>
>         ==== build-resolver: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-mda/0.1/
> ivys/ivy.xml
>
>           -- artifact org.koiosframework#koios-mda;0.1!koios-mda.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-mda/0.1/
> jars/koios-mda.jar
>
>         ==== lib: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/ivy-0.1.xml
>
>           -- artifact org.koiosframework#koios-mda;0.1!koios-mda.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/koios-mda-0.1.jar
>
>                 module not found: org.koiosframework#koios-
> standalone;0.1
>
>         ==== clientModule: tried
>
>         ==== build-resolver: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-standalo
> ne/0.1/ivys/ivy.xml
>
>           -- artifact
> org.koiosframework#koios-standalone;0.1!koios-standalone.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\.gradle\build-
> resolver/org.koiosframework/koios-standalo
> ne/0.1/jars/koios-standalone.jar
>
>         ==== lib: tried
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/ivy-0.1.xml
>
>           -- artifact
> org.koiosframework#koios-standalone;0.1!koios-standalone.jar:
>
>           C:\Documents and
> Settings\Allan\Workspace\koios-framework-trunk\lib/koios-
> standalone-0.1.jar
> --
> View this message in context: http://www.nabble.com/Creating-a- 
> dists-task-for-a-multi-project-build-tp18901701p18955451.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





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Creating a dists task for a multi-project build

Allan Lewis

hdockter wrote
My advise is based on a remote diagnosis. Hopefully it targets the  
right thing.

- Hans
Hans,

Here's the build file for the unit-test project.  I'm not doing a whole lot - the idea is that I want to do code generation before the resources task happens, so that any generated code/resources are available by the time we get to the compile phase.  Everything works fine normally, but as soon as I stick the dependsOnChildren in the parent build file I run into problems.

I'll try the suggestions you provided this evening - let me know if you have any other thoughts.

build.gradle
Reply | Threaded
Open this post in threaded view
|

Re: Creating a dists task for a multi-project build

Allan Lewis
Hans,

The linkConfWithTask call seems to have done the trick - I'm good for now.  Thanks again.

Allan

Allan Lewis wrote
hdockter wrote
My advise is based on a remote diagnosis. Hopefully it targets the  
right thing.

- Hans
Hans,

Here's the build file for the unit-test project.  I'm not doing a whole lot - the idea is that I want to do code generation before the resources task happens, so that any generated code/resources are available by the time we get to the compile phase.  Everything works fine normally, but as soon as I stick the dependsOnChildren in the parent build file I run into problems.

I'll try the suggestions you provided this evening - let me know if you have any other thoughts.

build.gradle