Hello Andreas,

On Wed, Oct 1, 2014 at 8:01 AM, Andreas Schmid - Service <
serv...@aaschmid.de> wrote:

> Hi dev@gradle,
>
> we recently have discovered some problem with dependent "jar" projects
> for a "war" project, such that
>
> 1. Eclipse does not recognize it due to missing jst.utiltiy facet
>

I will need some time to look at this. Some things in WTP support are
strange and it is complex area.


> 2. The "Deployment Assembly" will get all the dependencies of the
> project but by default just the dependencies of "runtime" configurations
> should apply.
>
> I have already made some patches for this, but no further tests
> currently, see
>
> https://github.com/aaschmid/gradle/tree/default.config.of.eclipse-wtp.for.jar
> .
> I have tested with a project in question by creating an own gradle
> version using the "install" task.
>
> If I understand correctly you want to make sure that dependencies like
junit (coming from test/testRuntime configuratio) that are on a classpath
of you library do not get added into your WAR. OTOH we would like to be
able still run tests for that library project, right? If you patches
address that then it would be welcome.

>
> Now my questions:
>
> 1. Is there anything else to be aware of or can I just create a pull
> request after implementing some tests?
>
> I believe accompanying your patch with a good test(s) will make your
intent more obvious and it makes integration process easier. Thanks for
your interest.

>
> 2. Furthermore, I want to configure the "eclipse.wtp.facet" on my "jar"
> project but I need to use "gradle.projectsEvaluated" (see also my
> comment:
>
> http://forums.gradle.org/gradle/topics/wtp_elipse_requires_ear_or_war_i_need_wtp_to_build_ejb_modules_but_i_dont_want_an_ear_artifact#reply_14825115
> ).
> This is required because in
> "org.gradle.plugins.ide.eclipse.EclipseWtpPlugin" all the configuration
> is done in "doLaterWithEachDependedUponEclipseProject(Project)". I have
> tried to remove the "project.gradle.projectsEvaluated" closure but has
> not helped. Even worse, this causes the "eclipse.wtp.facet" to be not
> configurated at all :-(
>
> I have also tried to add a configuration for "JavaPlugin" not just
> "WarPlugin" and "EarPlugin" but this causes the complete
> "EclipseWtpPlugin" to break down for "war"s (IMHO due to "WarPlugin"
> also applies "JavaPlugin" and the ".withType" is always executed first
> for "JavaPlugin", not for "WarPlugin" if available).
>
>
> I am really curious to get further information about this. Also I would
> be interessted in helping with the "Improved Tooling & IDE support" on
> the roadmap.
>
> We are at the point where we need to re-evaluate current integration and
feedback like this definitely helps us better see what are common use cases.

-Radim

>
> Best regards,
> Andreas
>
>
>
>
>
> --
> Andreas Schmid
> Leonhardiweg 53
> 81829 München
>
> Tel.: +49 176 10276440
> Email: serv...@aaschmid.de
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

Reply via email to