-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
80 lines (65 loc) · 2.01 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
plugins {
id 'java'
}
group = 'systems.cauldron'
version = '1.0-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// deep learning inference
if (project.hasProperty('gpu')) {
implementation 'com.microsoft.onnxruntime:onnxruntime_gpu:1+'
} else {
implementation 'com.microsoft.onnxruntime:onnxruntime:1+'
}
//web server
implementation enforcedPlatform('io.helidon:helidon-dependencies:2+')
implementation 'io.helidon.webserver:helidon-webserver'
implementation 'io.helidon.webserver:helidon-webserver-cors'
implementation 'io.helidon.media:helidon-media-jsonp'
implementation 'io.helidon.config:helidon-config-yaml'
implementation 'io.helidon.health:helidon-health'
implementation 'io.helidon.health:helidon-health-checks'
implementation 'io.helidon.metrics:helidon-metrics'
testImplementation 'io.helidon.webclient:helidon-webclient'
// unit testing
testImplementation 'org.junit.jupiter:junit-jupiter-api:5+'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5+'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5+'
// logging
implementation 'org.apache.logging.log4j:log4j-api:2+'
implementation 'org.apache.logging.log4j:log4j-core:2+'
}
test {
useJUnitPlatform()
}
java {
modularity.inferModulePath = true
}
compileJava {
inputs.property('moduleName', 'systems.cauldron.service.superresolution')
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
classpath = files()
}
}
jar {
archiveFileName = 'app.jar'
manifest.attributes.putAll([
'Main-Class': 'systems.cauldron.service.superresolution.Server',
'Class-Path': configurations.runtimeClasspath.files.collect { "libs/$it.name" }.join(' ')
])
}
task copyLibs(type: Copy) {
from configurations.runtimeClasspath
into 'build/libs/libs'
dependsOn jar
}
assemble {
dependsOn copyLibs
}