mirror of
https://github.com/apache/sqoop.git
synced 2025-05-02 19:31:59 +08:00
SQOOP-3415: Fix gradle test+build when clean applied as the first command + warning issue fixes
(Attila Szabo via Szabolcs Vasas) This closes #62
This commit is contained in:
parent
6a159ed282
commit
122d1c0b27
18
build.gradle
18
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 {
|
||||
tasks.withType(Test) {
|
||||
doFirst {
|
||||
project.mkdir(testBuildDir)
|
||||
project.mkdir(testBuildDirData)
|
||||
}
|
||||
|
||||
tasks.withType(Test) {
|
||||
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*"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user