Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make build work with Gradle plugin for Eclipse IDE.

  • Loading branch information...
commit 601f9f70406b24d966c2d97d6fcac535945d2719 1 parent 19aa237
Leo Neumeyer authored
Showing with 23 additions and 1 deletion.
  1. +7 −0 .gitignore
  2. +10 −0 README.md
  3. +6 −1 build.gradle
View
7 .gitignore
@@ -6,6 +6,7 @@
# Build directory
target/
build/
+bin/
# SVN
.svn
@@ -18,3 +19,9 @@ build/
# Misc hidden files
.DS_Store
+
+# create an empty .gitignore file when you want to track an empty
+# directory but want to ignore its content. Example: to keep the
+# "logs" dir do: "touch logs/.gitignore"
+#
+!.gitignore
View
10 README.md
@@ -66,6 +66,7 @@ git clone https://github.com/s4/s4.git
gradlew allImage
# Change permissions
+# (Until this Gradle bug is fixed: http://issues.gradle.org/browse/GRADLE-796)
chmod u+x ./build/s4-image/scripts/*
# Copy S4 application to deployment dir (s4-apps)
@@ -84,4 +85,13 @@ $EDITOR build/s4-image/s4-apps/s4-example-twittertopiccount/adapter-conf.xml
cat /tmp/top_n_hashtags
</pre>
+Developing with Eclipse
+-----------------------
+
+The command `gradle eclipse` will create an eclipse project that you can import from the Eclipse IDE.
+
+There is now a [Gradle plugin for the Eclipse IDE](http://static.springsource.org/sts/docs/2.7.0.M1/reference/html/gradle/index.html).
+To install Gradle without installing the full Spring development environment follow the
+[instructions](http://static.springsource.org/sts/docs/2.7.0.M1/reference/html/gradle/installation.html) under the heading
+"Installing from update site". There is also a discussion in the [Gradle mailing list](http://gradle.1045684.n5.nabble.com/ANN-Gradle-Eclipse-Plugin-td4387658.html).
View
7 build.gradle
@@ -58,7 +58,7 @@ allprojects {
/* Add lib dir as a repo. Some jar files that are not available
in a public repo are distributed in the lib dir. */
- flatDir name: 'libDir', dirs: "lib"
+ flatDir name: 'libDir', dirs: "$rootDir/lib"
}
}
@@ -100,6 +100,11 @@ subprojects {
//defaultTasks 'build'
group = 'io.s4'
+
+ /* Remove this once this bug is fixed: http://issues.gradle.org/browse/GRADLE-1157 */
+ eclipseClasspath {
+ downloadSources = false; // required for eclipseClasspath to work
+ }
/* Common dependencies applied to all subprojects. */
dependencies {

0 comments on commit 601f9f7

Please sign in to comment.
Something went wrong with that request. Please try again.