generated from civitaspo/digdag-plugin-scala-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (62 loc) · 2.21 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
plugins {
id 'scala'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '5.1.0'
}
group = 'pro.civitaspo'
version = '0.0.3'
def digdagVersion = '0.9.39'
def scalaSemanticVersion = "2.13.0"
def depScalaVersion = "2.13"
repositories {
mavenCentral()
jcenter()
maven {
url 'https://dl.bintray.com/digdag/maven'
}
}
dependencies {
compile group: 'io.digdag', name: 'digdag-spi', version: digdagVersion
compile group: 'io.digdag', name: 'digdag-client', version: digdagVersion
compile group: 'io.digdag', name: 'digdag-plugin-utils', version: digdagVersion
// Follow digdag core dependencies. These are used only when compiling.
// ref. https://github.com/treasure-data/digdag/tree/v0.9.39/digdag-core/build.gradle#L16-L17
compile group: 'org.jdbi', name: 'jdbi', version: '2.75'
compile group: 'com.zaxxer', name: 'HikariCP', version: '2.4.7'
compile group: 'org.scala-lang', name: 'scala-library', version: scalaSemanticVersion
compile group: 'org.flywaydb', name: 'flyway-core', version: '6.0.4'
compile group: 'com.typesafe.scala-logging', name: "scala-logging_$depScalaVersion", version: '3.9.2'
testCompile group: 'org.scalatest', name: "scalatest_$depScalaVersion", version: '3.0.8'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'io.digdag', name: 'digdag-cli', version: digdagVersion
}
shadowJar {
classifier = null
dependencies {
exclude(dependency('io.digdag:.*'))
exclude(dependency('com.fasterxml.jackson.*:.*:.*'))
exclude(dependency('com.google.inject:.*:.*'))
exclude(dependency('org.jdbi:jdbi:.*'))
exclude(dependency('com.zaxxer:HikariCP:.*'))
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}
test {
jvmArgs '-Duser.language=en -Duser.country=US'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileScala.options.encoding = 'UTF-8'
compileTestScala.options.encoding = 'UTF-8'
compileScala.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"