Hey everyone,
in our project, we have a few upstream dependencies that we develop
ourselves (in Eclipse), and I was wondering if there is a way to turn an
ordinary Gradle dependency into an Eclipse workspace project dependency when
generating the Eclipse classpath?
i.e. let's say we have a dependency to "artifact" in our app (both app and
artifact are developed in Eclipse):
dependencies {
compile "org.company:artifact:1.0-SNAPSHOT"
}
we want the build server to pull that JAR file from the snapshot repository.
However, when developing, we want to see changes to artifact in our app
immediately, by having Eclipse compile the dependency in straight away.
Right now what we have to do is create a new snapshot build, and run some
Gradle task for the app just to have Gradle re-download the new snapshot
JAR, just to make it visible to the app project in Eclipse (by itself it
won't detect the change). That's a bit annoying.
Instead, what we want is have "gradle eclipseClasspath" turn the dependency
to artifact into a workspace project dependency, rather than a dependency to
a JAR in Gradle's artifact cache. It should still reference all transitive
dependencies as JARs, however.
Is that something that can be achieved with the Eclipse DSL, or would we
have to code that ourselves?
Thanks
Matthias
PS: I'm getting confused over which version of the Eclipse DSL is the
current one. For instance, in order to configure the classpath in
build.gradle, would I use eclipse { classpath { ... } } or eclipseClasspath?
I understand there have been changes to how the Eclipse DSL works in Gradle
1.0, but I lost track.
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Gradle-s-Eclipse-DSL-and-resolving-dependencies-to-workspace-projects-tp4856525p4856525.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