Browse Source

Help eclipse compilation (#67403)

Eclipse wasn't seeing the special shadow jars we were making for
repository-azure and repository-hdfs so it wasn't able to compile those
plugins. This points Eclipse at the project that we use to build the
shadow jar which gets it compiling. The tests don't pass because we
aren't pointing at the shadow jars but at least we compile.
Nik Everett 4 years ago
parent
commit
7b0b09dfd7
2 changed files with 14 additions and 0 deletions
  1. 7 0
      plugins/repository-azure/build.gradle
  2. 7 0
      plugins/repository-hdfs/build.gradle

+ 7 - 0
plugins/repository-azure/build.gradle

@@ -48,6 +48,13 @@ versions << [
 
 dependencies {
   api project(path: 'azure-storage-blob', configuration: 'shadow')
+  if (isEclipse) {
+    /*
+     * Eclipse can't pick up the shadow dependency so we point it at *something*
+     * so it can compile things.
+     */
+    api project(path: 'azure-storage-blob')
+  }
   api "com.azure:azure-storage-common:${versions.azure}"
   api "com.azure:azure-core-http-netty:${versions.azureCoreHttpNetty}"
   api "com.azure:azure-core:${versions.azureCore}"

+ 7 - 0
plugins/repository-hdfs/build.gradle

@@ -49,6 +49,13 @@ configurations {
 dependencies {
   api "org.apache.hadoop:hadoop-client:${versions.hadoop2}"
   api project(path: 'hadoop-common', configuration: 'shadow')
+  if (isEclipse) {
+    /*
+     * Eclipse can't pick up the shadow dependency so we point it at *something*
+     * so it can compile things.
+     */
+    api project(path: 'hadoop-common')
+  }
   api "org.apache.hadoop:hadoop-annotations:${versions.hadoop2}"
   api "org.apache.hadoop:hadoop-auth:${versions.hadoop2}"
   api "org.apache.hadoop:hadoop-hdfs:${versions.hadoop2}"