-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
80 lines (66 loc) · 2.14 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
plugins {
id 'scala'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '2.0.2'
id "com.diffplug.gradle.spotless" version "3.27.1"
}
group = 'pro.civitaspo'
version = '0.1.6'
def digdagVersion = '0.9.42'
def scalaSemanticVersion = "2.13.1"
def depScalaVersion = "2.13"
repositories {
mavenCentral()
}
dependencies {
compile group: 'io.digdag', name: 'digdag-spi', version: digdagVersion
compile group: 'io.digdag', name: 'digdag-plugin-utils', version: digdagVersion
// https://mvnrepository.com/artifact/org.scala-lang/scala-library
compile group: 'org.scala-lang', name: 'scala-library', version: scalaSemanticVersion
['ecs', 's3', 'sts'].each { svc ->
// https://mvnrepository.com/artifact/com.amazonaws/
compile group: 'com.amazonaws', name: "aws-java-sdk-${svc}", version: '1.12.117'
}
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('.*:jackson.*:.*'))
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
repositories {
maven {
if (System.getenv("GITHUB_TOKEN")) {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/civitaspo/digdag-operator-ecs_task")
credentials {
username = "civitaspo"
password = System.getenv("GITHUB_TOKEN")
}
}
else {
url "$buildDir/repo"
}
}
}
}
spotless {
scala {
scalafmt('2.3.2').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"