Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Gradle integration (feedback requested)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Benjamin Manes  
View profile  
 More options Sep 11 2012, 6:09 pm
From: Benjamin Manes <ben.ma...@gmail.com>
Date: Tue, 11 Sep 2012 15:09:28 -0700 (PDT)
Local: Tues, Sep 11 2012 6:09 pm
Subject: Gradle integration (feedback requested)

I'm working on a pull request <https://github.com/gradle/gradle/pull/99> to
Gradle for improving the generated Eclipse metadata so that it works
properly with ScalaIDE. It would be useful if a ScalaIDE developer could
chime in on the pull request and provide some feedback on the direction
that we're headed.

In Gradle v1.1 the generated metadata adds the Scala nature, but does not
add the ScalaIDE's classpath container. This results in the error 'Cannot
find Scala library on the classpath. Verify your build path!' as described
in your FAQ. The pull request resolves this issue so that an import occurs
cleanly, however it results in two versions of the Scala library on the
build path (gradle's dependency and ScalaIDE's reference library). There is
concern that having having two conflicting versions of scala-library on the
IDE's build path is unhealthy, but it does appear to work properly for
minor library version (as binary compatible). A side effect of having the
scala-library as a gradle dependency is that it disables ScalaIDE's
incremental compilation support, which falls back to the slower full
compile. One solution to this is have gradle remove the library dependency
so that ScalaIDE's reference library is the only version on the build path.
This would allow incremental compilation and avoid versioning surprises,
but may create subtle behavioral differences due to bug fixes (e.g. when
running from Eclipse vs. command-line). Alternatively, it naively seems
that that the ScalaIDE should prefer the build system's version of the
dependency and not include its own as the reference library.

What do the ScalaIDE developers expect to be in the Eclipse metadata that a
build system generates?

Thanks!
Ben

[1] https://github.com/gradle/gradle/pull/99


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Sep 12 2012, 5:50 am
From: iulian dragos <jagua...@gmail.com>
Date: Wed, 12 Sep 2012 11:50:10 +0200
Local: Wed, Sep 12 2012 5:50 am
Subject: Re: [scala-ide-dev] Gradle integration (feedback requested)

Hi Benjamin,

On Wed, Sep 12, 2012 at 12:09 AM, Benjamin Manes <ben.ma...@gmail.com>wrote:

> I'm working on a pull request <https://github.com/gradle/gradle/pull/99>to Gradle for improving the generated Eclipse metadata so that it works
> properly with ScalaIDE. It would be useful if a ScalaIDE developer could
> chime in on the pull request and provide some feedback on the direction
> that we're headed.

This is really great news!

> In Gradle v1.1 the generated metadata adds the Scala nature, but does not
> add the ScalaIDE's classpath container. This results in the error 'Cannot
> find Scala library on the classpath. Verify your build path!' as described
> in your FAQ. The pull request resolves this issue so that an import occurs
> cleanly, however it results in two versions of the Scala library on the
> build path (gradle's dependency and ScalaIDE's reference library). There is
> concern that having having two conflicting versions of scala-library on
> the IDE's build path is unhealthy, but it does appear to work properly for
> minor library version (as binary compatible).

Indeed. Sbteclipse uses only the classpath container and removes the scala
library from project dependencies. IMO this is the preferred way, but
having both libraries (as long as they have the same major version number)
does/should not hurt.

> A side effect of having the scala-library as a gradle dependency is that
> it disables ScalaIDE's incremental compilation support, which falls back to
> the slower full compile.

This should not happen. Are you sure? I'd be happy to investigate this if
you have a test project somewhere. The Scala library is not treated
specially by the Eclipse builder. One possible explanation is that the
library is re-downloaded or somehow looks like it changed, and that causes
the builder to rebuild the whole project. If you use a recent nightly you
can enable DEBUG logging (Preferences/Scala/Logging) and see what exactly
is changed and what is recompiled.

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Sep 12 2012, 5:54 am
From: iulian dragos <jagua...@gmail.com>
Date: Wed, 12 Sep 2012 11:53:58 +0200
Local: Wed, Sep 12 2012 5:53 am
Subject: Re: [scala-ide-dev] Gradle integration (feedback requested)

I'll continue the discussion on the pull request, it seems the better place.

iulian

--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »