forked from Kotlin/kotlindl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
54 lines (47 loc) · 2.37 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
apply plugin: 'kotlin'
dependencies {
api project(":api")
api project(":impl")
api project(":tensorflow")
api project(":dataset")
api project(":visualization")
api project(":onnx")
}
dependencies {
implementation 'org.apache.logging.log4j:log4j-api:2.17.2'
implementation 'org.apache.logging.log4j:log4j-core:2.17.2'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2'
// to run on GPU (if CUDA is updated and machine with NVIDIA onboard)
/*implementation 'org.tensorflow:libtensorflow:1.15.0'
implementation 'org.tensorflow:libtensorflow_jni_gpu:1.15.0'
api 'com.microsoft.onnxruntime:onnxruntime_gpu:1.12.1'
*/
}
def publishedArtifactsVersion = System.getenv("KOTLIN_DL_RELEASE_VERSION")
if (publishedArtifactsVersion != null && !publishedArtifactsVersion.isBlank()) {
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute project(":api") using module("org.jetbrains.kotlinx:kotlin-deeplearning-api:$publishedArtifactsVersion") because "testing published artifacts"
substitute project(":impl") using module("org.jetbrains.kotlinx:kotlin-deeplearning-impl:$publishedArtifactsVersion") because "testing published artifacts"
substitute project(":tensorflow") using module("org.jetbrains.kotlinx:kotlin-deeplearning-tensorflow:$publishedArtifactsVersion") because "testing published artifacts"
substitute project(":dataset") using module("org.jetbrains.kotlinx:kotlin-deeplearning-dataset:$publishedArtifactsVersion") because "testing published artifacts"
substitute project(":visualization") using module("org.jetbrains.kotlinx:kotlin-deeplearning-visualization:$publishedArtifactsVersion") because "testing published artifacts"
substitute project(":onnx") using module("org.jetbrains.kotlinx:kotlin-deeplearning-onnx:$publishedArtifactsVersion") because "testing published artifacts"
}
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
// set heap size for the test JVM(s)
minHeapSize = "1024m"
maxHeapSize = "8g"
}