This repository has been archived by the owner on Nov 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (64 loc) · 1.78 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
plugins {
id 'scala'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '4.0.3'
id "com.diffplug.gradle.spotless" version "3.16.0"
}
group = 'io.digdag.plugin'
version = '0.0.2'
def digdagVersion = "0.9.31"
def scalaSemanticVersion = "2.12.7"
def s3SdkVersion = "1.11.467"
def guavaVersion = "19.0"
def specs2Version = "4.3.4"
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-plugin-utils', version: digdagVersion
compile group: 'org.scala-lang', name: 'scala-library', version: scalaSemanticVersion
compile group: 'com.google.guava', name: 'guava', version: guavaVersion
compile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: s3SdkVersion
testCompile group: 'org.specs2', name: 'specs2-core_2.12', version: specs2Version
testCompile group: 'org.specs2', name: 'specs2-junit_2.12', version: specs2Version
}
sourceSets {
main {
scala {
srcDirs = ['src/main/scala']
}
}
}
shadowJar {
classifier = null
dependencies {
exclude(dependency('io.digdag:.*'))
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven {
url "$buildDir/repo"
}
}
}
spotless {
scala {
scalafmt('1.5.1').configFile('.scalafmt.conf')
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileScala.options.encoding = 'UTF-8'
compileTestScala.options.encoding = 'UTF-8'
compileScala.options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"