-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.gradle
More file actions
58 lines (45 loc) · 1.53 KB
/
build.gradle
File metadata and controls
58 lines (45 loc) · 1.53 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
configurations {
torchmodels
}
def osName = System.getProperty('os.name').toLowerCase().split()[0]
if (osName == "mac") osName = "macosx"
String classifier = osName + "-x86_64"
evaluationDependsOn(':utbot-framework')
compileTestJava.dependsOn tasks.getByPath(':utbot-framework:testClasses')
dependencies {
api project(':utbot-analytics')
testImplementation project(':utbot-sample')
testImplementation group: 'junit', name: 'junit', version: junit4Version
implementation group: 'org.bytedeco', name: 'javacpp', version: javaCppVersion, classifier: "$classifier"
implementation "ai.djl:api:$djlApiVersion"
implementation "ai.djl.pytorch:pytorch-engine:$djlApiVersion"
implementation "ai.djl.pytorch:pytorch-native-auto:$pytorchNativeVersion"
testImplementation project(':utbot-framework').sourceSets.test.output
}
test {
minHeapSize = "128m"
maxHeapSize = "3072m"
jvmArgs '-XX:MaxHeapSize=3072m'
useJUnitPlatform() {
excludeTags 'slow', 'IntegrationTest'
}
}
processResources {
configurations.torchmodels.resolvedConfiguration.resolvedArtifacts.each { artifact ->
from(zipTree(artifact.getFile())) {
into "models"
}
}
}
jar {
dependsOn classes
manifest {
attributes 'Main-Class': 'org.utbot.QualityAnalysisKt'
}
dependsOn configurations.runtimeClasspath
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
zip64 = true
}