-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (75 loc) · 1.95 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'io.github.retz'
version = '0.2.1-SNAPSHOT'
def digdagVersion = '0.9.16'
project.ext {
retzMavenRepo = project.hasProperty("publishRepo") ? project.getProperty("publishRepo")
: project.version.contains("-SNAPSHOT") ? "s3://retz-maven/snapshots" : "s3://retz-maven/releases"
}
repositories {
mavenCentral()
jcenter()
maven {
url 'https://dl.bintray.com/digdag/maven'
}
maven {
url 'http://retz-maven.s3.amazonaws.com/releases'
}
}
configurations {
provided
}
dependencies {
compile 'io.github.retz:retz-client:0.4.0'
compileOnly 'io.digdag:digdag-spi:' + digdagVersion
compileOnly 'io.digdag:digdag-plugin-utils:' + digdagVersion
}
shadowJar {
classifier = null
relocate 'com.fasterxml.jackson', 'shadow.jackson'
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId 'retz-digdag-plugin'
}
}
repositories {
maven {
url retzMavenRepo
if (retzMavenRepo.startsWith("s3://")) {
credentials(AwsCredentials) {
accessKey System.getenv('AWS_ACCESS_KEY_ID')
secretKey System.getenv('AWS_SECRET_ACCESS_KEY')
}
}
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
javadoc {
options {
locale = 'en_US'
encoding = 'UTF-8'
}
}