-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
96 lines (82 loc) · 2.96 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
plugins {
id "org.embulk.embulk-plugins" version "0.5.5"
id "com.palantir.git-version" version "0.13.0"
id "com.diffplug.spotless" version "5.15.0"
id "com.adarshr.test-logger" version "3.0.0"
id "java"
id "checkstyle"
}
repositories {
mavenCentral()
}
configurations {
provided
}
group = "io.trocco"
description = "Facebook Ads Insights input plugin for Embulk."
version = {
def vd = versionDetails()
if (vd.commitDistance == 0 && vd.lastTag ==~ /^v[0-9]+\.[0-9]+\.[0-9]+(\.[a-zA-Z0-9]+)?/) {
vd.lastTag.substring(1)
} else {
"0.0.0.${vd.gitHash}.pre"
}
}()
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
def embulkVersion = "0.10.42"
compileOnly("org.embulk:embulk-api:${embulkVersion}")
compileOnly("org.embulk:embulk-spi:${embulkVersion}")
compile "org.embulk:embulk-util-config:0.3.4"
compile "org.embulk:embulk-util-timestamp:0.3.0"
compile "org.embulk:embulk-util-json:0.3.0"
compile group: "com.facebook.business.sdk", name: "facebook-java-business-sdk", version: "21.0.0"
// compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
testImplementation "junit:junit:4.+"
testImplementation "org.mockito:mockito-core:3.11.2"
testImplementation "org.embulk:embulk-api:${embulkVersion}"
testImplementation "org.embulk:embulk-spi:${embulkVersion}"
testImplementation "org.embulk:embulk-core:${embulkVersion}"
testImplementation "org.embulk:embulk-deps:${embulkVersion}"
testImplementation "org.embulk:embulk-junit4:${embulkVersion}"
testImplementation "org.embulk:embulk-output-file:${embulkVersion}"
testImplementation "org.embulk:embulk-formatter-csv:${embulkVersion}"
}
embulkPlugin {
mainClass = "org.embulk.input.facebook_ads_insights.FacebookAdsInsightsInputPlugin"
category = "input"
type = "facebook_ads_insights"
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
options.encoding = "UTF-8"
}
clean { delete "classpath" }
gem {
from("LICENSE.txt")
authors = ["naotaka nakane"]
email = ["[email protected]"]
summary = "Facebook Ads Insights input plugin for Embulk."
homepage = "https://github.com/trocco-io/embulk-input-facebook_ads_insights"
licenses = [ "MIT" ]
}
sourceSets.all {
configurations.getByName(runtimeClasspathConfigurationName) {
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
}
configurations.getByName(compileClasspathConfigurationName) {
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
}
configurations.getByName(runtimeConfigurationName) {
attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm")
}
}
spotless {
java {
importOrder()
removeUnusedImports()
// googleJavaFormat()
toggleOffOn()
}
}