-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
64 lines (50 loc) · 1.6 KB
/
build.gradle
File metadata and controls
64 lines (50 loc) · 1.6 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
}
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
def mainClassName = "se.kb.libris.foliointegration.Server"
repositories {
mavenCentral()
}
dependencies {
implementation "org.apache.httpcomponents.client5:httpclient5:5.5"
implementation "jakarta.servlet:jakarta.servlet-api:4.0.3"
implementation "org.eclipse.jetty:jetty-server:12.0.6"
implementation "org.eclipse.jetty.ee8:jetty-ee8-servlet:12.0.6"
implementation "org.xerial:sqlite-jdbc:3.49.1.0"
implementation "org.slf4j:slf4j-simple:2.0.17" // Redirect jetty logs to stderr
implementation("com.fasterxml.jackson.core:jackson-core:2.20.0")
implementation("com.fasterxml.jackson.core:jackson-databind:2.20.0")
implementation "com.schibsted.spt.data:jslt:0.1.14"
}
shadowJar {
archiveClassifier = null // removes `-all` in the filename of the created .jar
mergeServiceFiles()
}
jar {
dependsOn(shadowJar)
manifest {
attributes "Main-Class": mainClassName
}
archiveClassifier = "nonfat"
enabled = false
}
task(appRun, dependsOn: "classes", type: JavaExec) {
classpath = sourceSets.test.runtimeClasspath
mainClass = mainClassName
minHeapSize = "1g"
maxHeapSize = "4g"
args(System.getProperty("args", "").split() as String[])
debugOptions {
enabled = true
port = 5007
server = true
suspend = false
}
}