-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
65 lines (51 loc) · 1.91 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
plugins {
id "java"
id "application"
id "com.github.johnrengelman.shadow" version "7.1.2"
}
archivesBaseName = "maps-server"
mainClassName = "org.triplea.maps.MapsServerApplication"
ext {
releasesDir = file("$buildDir/releases")
}
jar {
manifest {
attributes "Main-Class": mainClassName
}
}
task portableInstaller(type: Zip, group: "release", dependsOn: shadowJar) {
from file("configuration.yml")
from(shadowJar.outputs) {
into "bin"
}
}
task release(group: "release", dependsOn: portableInstaller) {
doLast {
publishArtifacts(portableInstaller.outputs.files)
}
}
shadowJar {
archiveClassifier.set ""
// mergeServiceFiles is needed by dropwizard
// Without this configuration parsing breaks and is unable to find connector type "http" for
// the following YAML snippet: server: {applicationConnectors: [{type: http, port: 8080}]
mergeServiceFiles()
}
dependencies {
implementation "io.dropwizard:dropwizard-core:$dropwizardVersion"
implementation "io.dropwizard:dropwizard-jdbi3:$dropwizardVersion"
implementation "org.jdbi:jdbi3-core:$jdbiVersion"
implementation "org.jdbi:jdbi3-sqlobject:$jdbiVersion"
// implementation project(":http-clients:github-client")
// implementation project(":lib:feign-common")
// implementation project(":lib:java-extras")
// implementation project(":server:maps:client")
// implementation project(":server:server-lib")
// implementation project(":server:database")
runtimeOnly "org.postgresql:postgresql:$postgresqlVersion"
testImplementation "com.github.database-rider:rider-junit5:$databaseRiderVersion"
testImplementation "io.dropwizard:dropwizard-testing:$dropwizardVersion"
testImplementation "uk.co.datumedge:hamcrest-json:$hamcrestJsonVersion"
// testImplementation project(":lib:test-common")
testImplementation project(":server:database-test-support")
}