I did something similar to this by adding an extra configuration to my web
project and adding the configuration to the artifacts - see example below. 
Projects depending on the jar can then do this:
cmpile project(path: ':Web', configuration: 'jarOnly').

project(':Web')
    apply plugin: 'war'    
    configurations  {
        jarOnly
    }
    
    jar.enabled = true

    artifacts { 
        archives war
        jarOnly jar
    }
}


elygre wrote:
> 
> We have multi-project build. In the project :Test, we need the jar-files
> built by the :Util and :Web. I cannot make this work the easy way:
> 
> 
> 
> The :Util project builds a jar file:
> 
> 
> The :Web project uses the war-plugin to build both a jar and a war file:
> 
> 
> It seems that the dependency to the :Web project does not include the jar
> file built by the war plugin.
> 
> -> Is there an easy way to set up this configuration? (The long term goal
> of refactoring the :Web-project into a separate java project (say
> :WebClasses) which is then used by both :Web and :Test is not in scope for
> this particular question)
> 
> Eirik
> 


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Dependency-on-jar-file-generated-by-war-plugin-tp4806362p4810112.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


Reply via email to