-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
97 lines (83 loc) · 2.59 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
id "com.jfrog.bintray" version "1.8.5"
id "java"
id "checkstyle"
id "com.github.spotbugs" version "6.0.12"
id "org.sonarqube" version "4.0.0.2929"
id "maven-publish"
id "org.embulk.embulk-plugins" version "0.6.2"
}
repositories {
mavenCentral()
}
group = "io.github.yuokada"
version = "0.6.0"
description = "Embulk plugin for generate dummy records by Java."
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
dependencies {
compileOnly("org.embulk:embulk-core:0.10.38") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
exclude group: 'org.apache.commons', module: 'commons-lang3'
}
compileOnly("org.embulk:embulk-util-json:0.4.0")
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.3'
implementation 'org.apache.commons:commons-text:1.12.0'
testImplementation "junit:junit:4.+"
}
embulkPlugin {
mainClass = "io.github.yuokada.embulk.input.randomj.RandomjInputPlugin"
category = "input"
type = "randomj"
}
checkstyle {
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
toolVersion = '6.14.1'
}
checkstyleMain {
configFile = file("${project.rootDir}/config/checkstyle/default.xml")
ignoreFailures = false
}
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
}
spotbugs {
ignoreFailures = true
excludeFilter = file("spotbugs-exclude.xml")
}
// publishing {
// publications {
// embulkPluginMaven(MavenPublication) { // Publish it with "publishEmbulkPluginMavenPublicationToMavenRepository".
// from components.java // Must be "components.java". The dependency modification works only for it.
// }
// }
// repositories {
// maven {
// url = "${project.buildDir}/mavenPublishLocal"
// }
// }
// }
gem {
from("LICENSE.txt")
authors = ["yuokada"]
email = ["[email protected]"]
summary = "Randomj input plugin for Embulk"
homepage = "https://github.com/yuokada/embulk-input-randomj"
licenses = ["MIT"]
// metadata = [ // Optional -- if you need metadata in the gem.
// "foo": "bar"
// ]
}
gemPush {
host = "https://rubygems.org"
}