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
22
build.gradle
22
build.gradle
@ -84,6 +84,16 @@ configurations {
|
|||||||
|
|
||||||
compileJava.dependsOn(SqoopVersionFileGen)
|
compileJava.dependsOn(SqoopVersionFileGen)
|
||||||
|
|
||||||
|
compileJava {
|
||||||
|
options.compilerArgs += '-proc:none'
|
||||||
|
options.compilerArgs += '-Xlint:all'
|
||||||
|
}
|
||||||
|
|
||||||
|
compileTestJava {
|
||||||
|
options.compilerArgs += '-proc:none'
|
||||||
|
options.compilerArgs += '-Xlint:all'
|
||||||
|
}
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
force group: 'org.apache.avro', name: 'avro', version: avroVersion
|
force group: 'org.apache.avro', name: 'avro', version: avroVersion
|
||||||
@ -320,16 +330,16 @@ task allTest (type: Test){
|
|||||||
def testBuildDir = "$buildDir/test/"
|
def testBuildDir = "$buildDir/test/"
|
||||||
def testBuildDirData ="$testBuildDir/data/"
|
def testBuildDirData ="$testBuildDir/data/"
|
||||||
|
|
||||||
task buildFolder {
|
|
||||||
project.mkdir(testBuildDirData)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType(Test) {
|
tasks.withType(Test) {
|
||||||
|
doFirst {
|
||||||
|
project.mkdir(testBuildDir)
|
||||||
|
project.mkdir(testBuildDirData)
|
||||||
|
}
|
||||||
|
|
||||||
testLogging {
|
testLogging {
|
||||||
events 'passed', 'skipped'
|
events 'passed', 'skipped'
|
||||||
}
|
}
|
||||||
workingDir = testBuildDirData
|
workingDir = testBuildDirData
|
||||||
project.mkdir(workingDir)
|
|
||||||
systemProperties(System.getProperties())
|
systemProperties(System.getProperties())
|
||||||
systemProperty "test.data.dir", "$projectDir/testdata"
|
systemProperty "test.data.dir", "$projectDir/testdata"
|
||||||
systemProperty 'test.build.data', "$testBuildDir/data"
|
systemProperty 'test.build.data', "$testBuildDir/data"
|
||||||
@ -346,8 +356,6 @@ tasks.withType(Test) {
|
|||||||
maxHeapSize = "8G"
|
maxHeapSize = "8G"
|
||||||
jvmArgs "-da:org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge"
|
jvmArgs "-da:org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge"
|
||||||
|
|
||||||
dependsOn buildFolder
|
|
||||||
|
|
||||||
jacoco{
|
jacoco{
|
||||||
excludes = ["**/SqoopVersion*"]
|
excludes = ["**/SqoopVersion*"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user