-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (33 loc) · 1.18 KB
/
build.gradle
File metadata and controls
45 lines (33 loc) · 1.18 KB
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
group 'com.zitt.xbalancer'
version '1.0-SNAPSHOT'
wrapper {
gradleVersion = '6.3'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}
apply plugin: 'java'
apply plugin: 'application'
// Use Java 8 by default
sourceCompatibility = 1.8
targetCompatibility = 1.8
project.ext {
dropwizardVersion = '1.3.20'
configPath = "$rootProject.projectDir/config/"
}
version = '1.0'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'io.dropwizard', name: 'dropwizard-core', version: dropwizardVersion
implementation 'tw.hyl.common:jersey-jodatime:1.0.0'
implementation 'io.dropwizard.modules:dropwizard-java8:0.9.0-1'
testImplementation group: 'io.dropwizard', name: 'dropwizard-testing', version: dropwizardVersion
testImplementation group: 'junit', name: 'junit', version: '4.13'
testImplementation group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testImplementation 'org.apache.httpcomponents:httpclient:4.5.3'
}
mainClassName = "com.zitt.xbalancer.XbalancerApplication"
run {
args 'server', configPath + 'app.yml'
}