forked from johannes-manner/Cats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (34 loc) · 1.6 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
plugins {
id 'idea'
id 'eclipse'
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
sourceCompatibility = '17'
targetCompatibility = '17'
repositories {
mavenCentral()
}
def props = new Properties()
file("src/main/resources/config.properties").withInputStream { props.load(it) }
dependencies {
def jerseyVersion = '3.1.1'
implementation group: 'org.glassfish.jersey.core', name: 'jersey-server', version: "${jerseyVersion}"
implementation group: 'org.glassfish.jersey.core', name: 'jersey-client', version: "${jerseyVersion}"
implementation group: 'org.glassfish.jersey.containers', name: 'jersey-container-servlet', version: "${jerseyVersion}"
implementation group: 'org.glassfish.jersey.containers', name: 'jersey-container-jdk-http', version: "${jerseyVersion}"
implementation group: 'org.glassfish.jersey.media', name: 'jersey-media-jaxb', version: "${jerseyVersion}"
implementation group: 'org.glassfish.jersey.media', name: 'jersey-media-moxy', version: "${jerseyVersion}"
// needed since version 2.26 and newer are not backward compatible
// https://stackoverflow.com/questions/44088493/jersey-stopped-working-with-injectionmanagerfactory-not-found
implementation group: 'org.glassfish.jersey.inject', name: 'jersey-hk2', version: "${jerseyVersion}"
implementation 'org.glassfish.jaxb:jaxb-runtime:4.0.2'
implementation group: 'org.webjars', name: 'swagger-ui', version: props.getProperty("swaggeruiversion")
}
run {
standardInput = System.in
}
application {
mainClass = 'de.uniba.dsg.jaxrs.JaxRsServer'
}