From 6dc501ac81fbd606f0d7cceae3f69f52ee4f3cd2 Mon Sep 17 00:00:00 2001 From: Ben Christensen Date: Thu, 14 Feb 2013 12:23:06 -0800 Subject: [PATCH] Add IntelliJ Idea support to Gradle build https://github.com/Netflix/RxJava/issues/143 --- language-adaptors/rxjava-clojure/build.gradle | 10 ++++++++-- language-adaptors/rxjava-groovy/build.gradle | 10 ++++++++-- language-adaptors/rxjava-jruby/build.gradle | 9 ++++++++- language-adaptors/rxjava-scala/build.gradle | 9 ++++++++- rxjava-core/build.gradle | 9 ++++++++- 5 files changed, 40 insertions(+), 7 deletions(-) diff --git a/language-adaptors/rxjava-clojure/build.gradle b/language-adaptors/rxjava-clojure/build.gradle index 0ff569c87d9..fdaa8f4857b 100644 --- a/language-adaptors/rxjava-clojure/build.gradle +++ b/language-adaptors/rxjava-clojure/build.gradle @@ -43,11 +43,17 @@ eclipse { } } +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} + -// setup Eclipse eclipse { classpath { - //you can tweak the classpath of the Eclipse project by adding extra configurations: + // include 'provided' dependencies on the classpath plusConfigurations += configurations.provided downloadSources = true diff --git a/language-adaptors/rxjava-groovy/build.gradle b/language-adaptors/rxjava-groovy/build.gradle index b0e21086119..3647f6af11d 100644 --- a/language-adaptors/rxjava-groovy/build.gradle +++ b/language-adaptors/rxjava-groovy/build.gradle @@ -24,13 +24,19 @@ configurations { // include 'examples' in build task build.dependsOn examplesClasses -// setup Eclipse eclipse { classpath { - //you can tweak the classpath of the Eclipse project by adding extra configurations: + // include 'provided' dependencies on the classpath plusConfigurations += configurations.provided downloadSources = true downloadJavadoc = true } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } } \ No newline at end of file diff --git a/language-adaptors/rxjava-jruby/build.gradle b/language-adaptors/rxjava-jruby/build.gradle index 17d2cb2f117..c86af4212a9 100644 --- a/language-adaptors/rxjava-jruby/build.gradle +++ b/language-adaptors/rxjava-jruby/build.gradle @@ -11,10 +11,17 @@ dependencies { eclipse { classpath { - //you can tweak the classpath of the Eclipse project by adding extra configurations: + // include 'provided' dependencies on the classpath plusConfigurations += configurations.provided downloadSources = true downloadJavadoc = true } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } } \ No newline at end of file diff --git a/language-adaptors/rxjava-scala/build.gradle b/language-adaptors/rxjava-scala/build.gradle index 25be45894de..edff7a24b1a 100644 --- a/language-adaptors/rxjava-scala/build.gradle +++ b/language-adaptors/rxjava-scala/build.gradle @@ -37,10 +37,17 @@ task test(overwrite: true, dependsOn: testClasses) << { eclipse { classpath { - //you can tweak the classpath of the Eclipse project by adding extra configurations: + // include 'provided' dependencies on the classpath plusConfigurations += configurations.provided downloadSources = true downloadJavadoc = true } +} + +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } } \ No newline at end of file diff --git a/rxjava-core/build.gradle b/rxjava-core/build.gradle index 499cae4e756..a77efe6907f 100644 --- a/rxjava-core/build.gradle +++ b/rxjava-core/build.gradle @@ -15,7 +15,7 @@ dependencies { eclipse { classpath { - //you can tweak the classpath of the Eclipse project by adding extra configurations: + // include 'provided' dependencies on the classpath plusConfigurations += configurations.provided downloadSources = true @@ -23,6 +23,13 @@ eclipse { } } +idea { + module { + // include 'provided' dependencies on the classpath + scopes.PROVIDED.plus += configurations.provided + } +} + javadoc { // we do not want the org.rx.operations package include exclude '**/operations/**'