sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject sqoop git commit: SQOOP-3415: Fix gradle test+build when clean applied as the first command + warning issue fixes
Date Mon, 03 Dec 2018 10:46:14 GMT
Repository: sqoop
Updated Branches:
  refs/heads/trunk 6a159ed28 -> 122d1c0b2


SQOOP-3415: Fix gradle test+build when clean applied as the first command + warning issue
fixes

(Attila Szabo via Szabolcs Vasas)

This closes #62


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/122d1c0b
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/122d1c0b
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/122d1c0b

Branch: refs/heads/trunk
Commit: 122d1c0b27c0f5e4532f7a23ce016a5c5756321a
Parents: 6a159ed
Author: Szabolcs Vasas <vasas@apache.org>
Authored: Mon Dec 3 11:44:31 2018 +0100
Committer: Szabolcs Vasas <vasas@apache.org>
Committed: Mon Dec 3 11:44:31 2018 +0100

----------------------------------------------------------------------
 build.gradle | 22 +++++++++++++++-------
 1 file changed, 15 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/122d1c0b/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index f0beec9..47d4136 100644
--- a/build.gradle
+++ b/build.gradle
@@ -84,6 +84,16 @@ configurations {
 
 compileJava.dependsOn(SqoopVersionFileGen)
 
+compileJava {
+    options.compilerArgs += '-proc:none'
+    options.compilerArgs += '-Xlint:all'
+}
+
+compileTestJava {
+    options.compilerArgs += '-proc:none'
+    options.compilerArgs += '-Xlint:all'
+}
+
 configurations.all {
     resolutionStrategy {
         force group: 'org.apache.avro', name: 'avro', version: avroVersion
@@ -320,16 +330,16 @@ task allTest (type: Test){
 def testBuildDir = "$buildDir/test/"
 def testBuildDirData ="$testBuildDir/data/"
 
-task buildFolder {
-    project.mkdir(testBuildDirData)
-}
-
 tasks.withType(Test) {
+    doFirst {
+        project.mkdir(testBuildDir)
+        project.mkdir(testBuildDirData)
+    }
+
     testLogging {
         events 'passed', 'skipped'
     }
     workingDir = testBuildDirData
-    project.mkdir(workingDir)
     systemProperties(System.getProperties())
     systemProperty "test.data.dir", "$projectDir/testdata"
     systemProperty 'test.build.data', "$testBuildDir/data"
@@ -346,8 +356,6 @@ tasks.withType(Test) {
     maxHeapSize = "8G"
     jvmArgs "-da:org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge"
 
-    dependsOn buildFolder
-
     jacoco{
         excludes = ["**/SqoopVersion*"]
     }


Mime
View raw message