blob: 02fbbdb799fc2e508c9f727e30b1302270bb8292 (
plain)
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
|
plugins {
id 'java'
// This time we're building a command-line executable application.
id 'application'
}
def versions = [
ScalaBinary: "2.13"
]
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation platform("com.typesafe.akka:akka-bom_${versions.ScalaBinary}:2.6.15")
implementation "com.typesafe.akka:akka-actor-typed_${versions.ScalaBinary}"
// Use the Jersey framework to make writing and testing servlets easier.
implementation 'org.glassfish.jersey.containers:jersey-container-servlet-core:+'
implementation 'org.glassfish.jersey.containers:jersey-container-jetty-http:+'
implementation 'org.glassfish.jersey.core:jersey-server:+'
implementation 'org.glassfish.jersey.inject:jersey-hk2:+'
implementation 'org.glassfish.jersey.media:jersey-media-json-jackson:+'
// Use Jakarta (Java EE) for the servlet primitives.
implementation 'jakarta.servlet:jakarta.servlet-api:+'
// Use the Jetty server.
implementation 'org.eclipse.jetty:jetty-server:+'
implementation 'org.eclipse.jetty:jetty-servlet:+'
implementation 'org.eclipse.jetty:jetty-webapp:+'
implementation 'org.eclipse.jetty:jetty-websocket:+'
implementation 'org.eclipse.jetty.websocket:websocket-jetty-server:+'
// We want to have some logging output if things go wrong, so use the simple console logger from SLF4J.
// In our simple use case, the logger gets automatically configured by simply existing.
implementation 'org.slf4j:slf4j-simple:+'
// Reference the domain subproject.
implementation project(':domain')
implementation 'com.google.code.gson:gson:2.8.7'
// Use JUnit Jupiter API for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
// Also use the Mockito mocking framework to mock simple server functionality.
testImplementation "org.mockito:mockito-core:2.+"
// Use JUnit Jupiter Engine for testing.
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
application {
// Define the main class for the application.
mainClassName = 'akkamon.api.App'
}
test {
useJUnitPlatform()
}
|