azkaban-aplcache

Restoring Distribution code for azkaban-hadoop-security-plugin

5/2/2017 7:36:33 PM
3.21.0

Details

diff --git a/azkaban-hadoop-security-plugin/build.gradle b/azkaban-hadoop-security-plugin/build.gradle
index 7a9e849..9e6ac8a 100644
--- a/azkaban-hadoop-security-plugin/build.gradle
+++ b/azkaban-hadoop-security-plugin/build.gradle
@@ -8,3 +8,20 @@ dependencies {
   compileOnly "org.apache.hadoop:hadoop-mapreduce-client-core:$hadoopVersion"
   compileOnly "org.apache.hive:hive-metastore:$hiveVersion"
 }
+
+/**
+ * TODO spyne: remove after fixing internal build.
+ *
+ * Just package the jar.
+ * Since, rest of the dependencies are just hadoop and hive. They are not packaged inside the plugin.
+ * It is assumed that classpaths of hadoop, hive, pig, etc will be externally fed into the application.
+ */
+distributions {
+  main {
+    contents {
+      from(jar) {
+        into 'lib'
+      }
+    }
+  }
+}