forked from rubik-ai/embulk-input-parquet_hadoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
74 lines (64 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
plugins {
id "com.jfrog.bintray" version "1.6"
id "com.github.jruby-gradle.base" version "1.2.1"
id "java"
id "checkstyle"
}
import com.github.jrubygradle.JRubyExec
allprojects {
group = 'jp.co.cyberagent.embulk'
version = '0.1.1'
}
subprojects {
apply plugin: 'com.github.jruby-gradle.base'
apply plugin: 'java'
apply plugin: 'checkstyle'
repositories {
mavenCentral()
jcenter()
}
configurations {
provided
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" //<< "-Xlint:deprecation"
}
}
task classpath(type: Copy, dependsOn: ["jar"]) {
doFirst { file("classpath").deleteDir() }
from (configurations.runtime - configurations.provided + files(jar.archivePath))
into "classpath"
}
clean {
delete "classpath"
delete "${project.name}.gemspec"
}
checkstyle {
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
toolVersion = '6.14.1'
}
checkstyleMain {
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
ignoreFailures = true
}
checkstyleTest {
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
ignoreFailures = true
}
task checkstyle(type: Checkstyle) {
classpath = sourceSets.main.output + sourceSets.test.output
source = sourceSets.main.allJava + sourceSets.test.allJava
}
task "package"(dependsOn: ["gemspec", "classpath"]) {
doLast {
println "> Build succeeded."
println "> You can run embulk with '-L ${file(".").absolutePath}' argument."
}
}
}
task gemPush() {
dependsOn ":embulk-input-parquet_hadoop:gemPush"
}