Sha256: c100d827564a12b690775ae939fbd033ad6b0e274a7b3c14eb31d5821182e5fd

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 KB

Contents

plugins {
    id 'com.jfrog.bintray' version '1.1'
    id 'com.github.jruby-gradle.base' version '0.1.5'
    id 'java'
}
import com.github.jrubygradle.JRubyExec

apply plugin: 'java'
apply plugin: 'com.github.jruby-gradle.base'

[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

project.version = '0.1.3'

repositories {
    mavenCentral()
    jcenter()
}

configurations {
    provided
}

dependencies {
    compile     'org.embulk:embulk-core:0.7.4'
    provided    'org.embulk:embulk-core:0.7.4'
    testCompile 'org.embulk:embulk-standards:0.7.4'
    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' }

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") }
}

task gemspec << {
    file('build').mkdirs();
    file('build/gemspec').write($/
Gem::Specification.new do |spec|
  spec.name          = "${project.name}"
  spec.version       = "${project.version}"
  spec.authors       = ["Hitoshi Tanaka"]
  spec.homepage      = "https://github.com/hito4t/embulk-input-filesplit"
  spec.summary       = "Embulk plugin for splitting input file"
  spec.licenses      = ["Apache 2.0"]
  spec.files         = `git ls-files`.split("\n").grep(%r"^(?!\.)").grep(%r"^(?!depends/)") + Dir["classpath/*.jar"]
  spec.test_files    = spec.files.grep(%r"^(test|spec)/")
  spec.require_paths = ["lib"]
end
/$)
}


task gempush << {
    "gem push pkg/embulk-input-filesplit-${project.version}.gem".execute().waitFor()
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
embulk-input-filesplit-0.1.3 build.gradle