build.gradle in embulk-output-gcs-0.3.0 vs build.gradle in embulk-output-gcs-0.4.0
- old
+ new
@@ -1,9 +1,10 @@
plugins {
id "com.jfrog.bintray" version "1.1"
id "com.github.jruby-gradle.base" version "0.1.5"
id "java"
+ id "checkstyle"
id "jacoco"
}
import com.github.jrubygradle.JRubyExec
repositories {
mavenCentral()
@@ -14,29 +15,46 @@
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
-version = "0.3.0"
+version = "0.4.0"
dependencies {
- compile "org.embulk:embulk-core:0.7.3"
- provided "org.embulk:embulk-core:0.7.3"
+ compile "org.embulk:embulk-core:0.8.6"
+ provided "org.embulk:embulk-core:0.8.6"
compile "com.google.http-client:google-http-client-jackson2:1.19.0"
compile ("com.google.apis:google-api-services-storage:v1-rev28-1.19.1") {exclude module: "guava-jdk5"}
testCompile "junit:junit:4.12"
- testCompile "org.embulk:embulk-core:0.7.5:tests"
- testCompile "org.embulk:embulk-standards:0.7.5"
+ testCompile "org.embulk:embulk-core:0.8.6:tests"
+ testCompile "org.embulk:embulk-standards:0.8.6"
}
task classpath(type: Copy, dependsOn: ["jar"]) {
doFirst { file("classpath").deleteDir() }
from (configurations.runtime - configurations.provided + files(jar.archivePath))
into "classpath"
}
clean { delete 'classpath' }
+
+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 gem(type: JRubyExec, dependsOn: ["build", "gemspec", "classpath"]) {
jrubyArgs "-rrubygems/gem_runner", "-eGem::GemRunner.new.run(ARGV)", "build"
script "build/gemspec"
doLast { ant.move(file: "${project.name}-${project.version}.gem", todir: "pkg") }