build.gradle in embulk-input-http-0.0.9 vs build.gradle in embulk-input-http-0.0.11
- old
+ new
@@ -1,33 +1,54 @@
plugins {
id "com.jfrog.bintray" version "1.1"
id "com.github.jruby-gradle.base" version "0.1.5"
id "java"
+ id "checkstyle"
}
import com.github.jrubygradle.JRubyExec
repositories {
mavenCentral()
jcenter()
}
configurations {
provided
}
-version = "0.0.9"
+version = "0.0.11"
+sourceCompatibility = 1.7
+targetCompatibility = 1.7
+
dependencies {
- compile "org.embulk:embulk-core:0.7.4"
+ compile "org.embulk:embulk-core:0.8.8"
compile "org.apache.httpcomponents:httpclient:4.4"
- provided "org.embulk:embulk-core:0.7.4"
+ provided "org.embulk:embulk-core:0.8.8"
testCompile "junit:junit:4.+"
}
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") }