You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@datafu.apache.org by GitBox <gi...@apache.org> on 2019/06/04 09:34:04 UTC

[GitHub] [datafu] eyala commented on a change in pull request #15: Add Spark functionality to DataFu, datafu-spark

eyala commented on a change in pull request #15: Add Spark functionality to DataFu, datafu-spark
URL: https://github.com/apache/datafu/pull/15#discussion_r290209031
 
 

 ##########
 File path: datafu-spark/build.gradle
 ##########
 @@ -0,0 +1,91 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+ */
+
+// Much of this file is a variation on the Apache Samza build.gradle file
+
+buildscript {
+  repositories {
+      mavenCentral()
+  }
+}
+
+apply from: file("gradle/dependency-versions-scala-" + scalaVersion + ".gradle")
+
+apply plugin: 'scala'
+
+allprojects {
+	// For all scala compilation, add extra compiler options, taken from version-specific
+  // dependency-versions-scala file applied above.
+  tasks.withType(ScalaCompile) {
+    scalaCompileOptions.additionalParameters = [ scalaOptions ]
+	}
+}
+
+archivesBaseName = 'datafu-spark_' + scalaVersion + '_' + sparkVersion
+
+import groovy.xml.MarkupBuilder
+
+cleanEclipse {
+  doLast {
+    delete ".apt_generated"
+    delete ".settings"
+    delete ".factorypath"
+    delete "bin"
+  }
+}
+
+// Force scala joint compilation
+sourceSets.main.scala.srcDir "src/main/java"
+sourceSets.test.scala.srcDir "src/test/java"
 
 Review comment:
   I took this from the Samza build file and it appears to be unnecessary - I will remove it.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services