-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle
56 lines (46 loc) · 1.1 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
plugins {
id "java"
id "application"
id "org.flywaydb.flyway" version "4.0.3"
}
// Use Java 8 by default
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
// UTF-8 should be standard by now. So use it!
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
// The main class of the application
mainClassName = 'com.example.ExampleApplication'
// Set our project variables
project.ext {
dropwizardVersion = '1.0.0'
}
repositories {
mavenCentral()
}
dependencies {
compile (
'io.dropwizard:dropwizard-core:' + dropwizardVersion,
'io.dropwizard:dropwizard-jdbi:' + dropwizardVersion,
'com.h2database:h2:1.4.192'
)
testCompile (
'io.dropwizard:dropwizard-testing:' + dropwizardVersion
)
}
// Configure flyway
flyway {
url = 'jdbc:h2:file:./persondb'
user = 'sa'
}
// Configure the run task to start the Dropwizard service
run {
args 'server', './config.yml'
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}