azkaban-aplcache

Moving part of Util class to new az-core module (#1463) This

9/15/2017 1:22:48 PM

Details

diff --git a/az-core/build.gradle b/az-core/build.gradle
new file mode 100644
index 0000000..db9f912
--- /dev/null
+++ b/az-core/build.gradle
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2017 LinkedIn Corp.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+/**
+ * Place foundation classes in this sub-module.
+ */
+dependencies {
+    compile deps.jexl
+    compile deps.commonsLang
+    compile deps.jodaTime
+    compile deps.io
+    compile deps.jacksonCoreAsl
+    compile deps.jacksonMapperAsl
+    compile deps.metricsCore
+    compile deps.metricsJvm
+    compile deps.quartz
+}
diff --git a/azkaban-common/build.gradle b/azkaban-common/build.gradle
index c7e3e14..5b65fdb 100644
--- a/azkaban-common/build.gradle
+++ b/azkaban-common/build.gradle
@@ -15,11 +15,11 @@
  */
 
 dependencies {
+    compile project(':az-core')
     compile project(':azkaban-spi')
     compile project(':azkaban-db')
 
     compile deps.collections
-    compile deps.commonsLang
     compile deps.dbcp2
     compile deps.dbutils
     compile deps.fileupload
@@ -30,20 +30,14 @@ dependencies {
     compile deps.hadoopCommon
     compile deps.hadoopHdfs
     compile deps.httpclient
-    compile deps.io
-    compile deps.jacksonCoreAsl
-    compile deps.jacksonMapperAsl
     compile deps.jetty
     compile deps.jettyUtil
-    compile deps.jexl
-    compile deps.jodaTime
     compile deps.jopt
     compile deps.mail
     compile deps.math3
     compile deps.metricsCore
     compile deps.metricsJvm
     compile deps.mysqlConnector
-    compile deps.quartz
     compile deps.snakeyaml
     compile deps.velocity
 
diff --git a/azkaban-db/build.gradle b/azkaban-db/build.gradle
index a2c8f45..9ae414b 100644
--- a/azkaban-db/build.gradle
+++ b/azkaban-db/build.gradle
@@ -30,6 +30,7 @@ artifacts {
 }
 
 dependencies {
+    compile project(':az-core')
 
     // todo kunkun-tang: consolidate dependencies in azkaban-common and azkaban-db
     compile deps.dbutils
diff --git a/azkaban-exec-server/build.gradle b/azkaban-exec-server/build.gradle
index c6030b9..6f0c45a 100644
--- a/azkaban-exec-server/build.gradle
+++ b/azkaban-exec-server/build.gradle
@@ -1,6 +1,7 @@
 apply plugin: 'distribution'
 
 dependencies {
+    compile(project(':az-core'))
     compile(project(':azkaban-common'))
 
     compile deps.kafkaLog4jAppender
diff --git a/azkaban-hadoop-security-plugin/build.gradle b/azkaban-hadoop-security-plugin/build.gradle
index 7b2598b..b6db86a 100644
--- a/azkaban-hadoop-security-plugin/build.gradle
+++ b/azkaban-hadoop-security-plugin/build.gradle
@@ -1,6 +1,7 @@
 apply plugin: 'distribution'
 
 dependencies {
+    compile project(':az-core')
     compile project(":azkaban-common")
 
     compileOnly deps.hadoopCommon
diff --git a/azkaban-web-server/build.gradle b/azkaban-web-server/build.gradle
index 67a4379..a22fad2 100644
--- a/azkaban-web-server/build.gradle
+++ b/azkaban-web-server/build.gradle
@@ -48,6 +48,7 @@ configurations {
 }
 
 dependencies {
+  compile project(':az-core')
   compile(project(':azkaban-common'))
 
   compile deps.restliServer

settings.gradle 1(+1 -0)

diff --git a/settings.gradle b/settings.gradle
index 6a0f593..1b44194 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -16,6 +16,7 @@
 
 rootProject.name = 'azkaban'
 
+include 'az-core'
 include 'az-exec-util'
 include 'azkaban-spi'
 include 'azkaban-db'