-
Notifications
You must be signed in to change notification settings - Fork 129
/
build.gradle.kts
39 lines (31 loc) · 1.08 KB
/
build.gradle.kts
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
@file:Suppress("UNCHECKED_CAST")
plugins {
application
}
apply(file("../../tools/gradle/javaFormatter.gradle.kts"))
group = "com.examples"
version = "1.0-SNAPSHOT"
var djlVersion = property("djl_version") as String
// djlVersion = if (djlVersion.endsWith("-SNAPSHOT")) djlVersion else "${djlVersion}-SNAPSHOT"
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
implementation(platform("ai.djl:bom:${djlVersion}"))
implementation("ai.djl:api")
runtimeOnly("ai.djl.pytorch:pytorch-engine")
runtimeOnly("ai.djl.pytorch:pytorch-model-zoo")
runtimeOnly("ai.djl.python:python")
implementation("org.slf4j:slf4j-simple:${property("slf4j_version")}")
}
tasks {
application {
mainClass = System.getProperty("main", "com.examples.BetterSolution")
}
run.configure {
systemProperties = System.getProperties().toMap() as Map<String, Any>
systemProperties.remove("user.dir")
// systemProperty("org.slf4j.simpleLogger.log.ai.djl.python.engine.PyProcess", "warn")
}
}