I have two Gradle projects, one creates a war file, and the other
creates an application that uses jetty to run that war file.

I am using the application plugin but have not found a concise way to
declare the dependency on the war from the other project.

Currently the war is loaded from the classpath, so in order to get the
war file loadable from the classpath it is declared as follows:

dependencies {
    runtime files(project(":warProject").war.outputs.files.singleFile.parent)
}

This works fine for using the "run" task of the application plugin.

However, to have the same file available when the application is built
this needs to be added:

jar {
    from project(":eps").war.outputs.files.singleFile
}


Is there a better way to achieve this?

Thanks,

-Mike

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

    http://xircles.codehaus.org/manage_email


Reply via email to