-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
106 lines (80 loc) · 3.08 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
97
98
99
100
101
102
103
104
105
106
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
classpath 'com.bmuschko:gradle-docker-plugin:3.0.11'
}
}
group 'io.github.tjheslin1'
version '1.3.1'
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: com.bmuschko.gradle.docker.DockerRemoteApiPlugin
sourceCompatibility = 1.8
def oracleUsername = hasProperty('mavenOracleUsername') ? mavenOracleUsername : System.getenv('mavenOracleUsername')
def oraclePassword = hasProperty('mavenOraclePassword') ? mavenOraclePassword : System.getenv('mavenOraclePassword')
repositories {
jcenter()
maven {
url "https://www.oracle.com/content/secure/maven/content"
credentials {
username "${oracleUsername}"
password "${oraclePassword}"
}
}
}
defaultTasks 'clean', 'test', 'shadowJar', 'buildMyAppImage'
dependencies {
compile(group: 'com.oracle.jdbc', name: 'ojdbc8', version: '12.2.0.1') {
exclude module: 'xmlparserv2'
}
compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.9.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.4'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
compile group: 'com.google.guava', name: 'guava', version: '23.0'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.4.5.v20170502'
compile group: 'org.eclipse.jetty', name: 'jetty-servlet', version: '9.4.5.v20170502'
compile 'net.jodah:failsafe:1.1.0'
compile group: 'io.prometheus', name: 'simpleclient', version: '0.1.0'
compile group: 'io.prometheus', name: 'simpleclient_hotspot', version: '0.1.0'
compile group: 'io.prometheus', name: 'simpleclient_common', version: '0.1.0'
compile 'com.zaxxer:HikariCP:2.7.6'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'org.assertj:assertj-core:3.5.2'
testCompile "org.mockito:mockito-core:2.2.9"
testCompile 'io.github.tjheslin1:Westie:1.4.2'
testCompile group: 'com.h2database', name: 'h2', version: '1.4.196'
}
tasks.withType(AbstractCompile) {
classpath += configurations.shadow
}
jar {
manifest {
attributes 'Main-Class': 'io.github.tjheslin1.patterdale.Patterdale'
}
}
shadowJar {
baseName = 'patterdale-all'
classifier = null
version = null
}
//task wrapper(type: Wrapper) {
// gradleVersion = '5.1.1'
//}
import com.bmuschko.gradle.docker.tasks.image.DockerBuildImage
task buildMyAppImage(type: DockerBuildImage) {
inputDir = file('.')
tag = 'tjheslin1/patterdale:DEV-SNAPSHOT'
}
task unitTest(type: Test) {
exclude '**/endtoend/**'
}
task functionalTest(type: Test) {
exclude '**/io/github/tjheslin1/patterdale/**'
exclude 'staticanalysis'
}