-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (38 loc) · 1.82 KB
/
build.gradle
File metadata and controls
46 lines (38 loc) · 1.82 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
dependencies {
implementation project(':utbot-framework-api')
implementation project(':utbot-rd')
implementation group: 'org.ow2.asm', name: 'asm', version: asmVersion
implementation group: 'org.ow2.asm', name: 'asm-commons', version: asmVersion
implementation group: 'com.esotericsoftware.kryo', name: 'kryo5', version: kryoVersion
// this is necessary for serialization of some collections
implementation group: 'de.javakaffee', name: 'kryo-serializers', version: kryoSerializersVersion
implementation group: 'io.github.microutils', name: 'kotlin-logging', version: kotlinLoggingVersion
implementation group: 'com.jetbrains.rd', name: 'rd-framework', version: rdVersion
implementation group: 'com.jetbrains.rd', name: 'rd-core', version: rdVersion
implementation group: 'net.java.dev.jna', name: 'jna-platform', version: jnaPlatformVersion
// TODO: this is necessary for inline classes mocking in UtExecutionInstrumentation
implementation group: 'org.mockito', name: 'mockito-core', version: mockitoVersion
implementation group: 'org.mockito', name: 'mockito-inline', version: mockitoInlineVersion
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes (
'Main-Class': 'org.utbot.instrumentation.process.InstrumentedProcessMainKt',
'Premain-Class': 'org.utbot.instrumentation.agent.Agent',
)
}
// we need only classes from implementation and utbot to execute instrumented process
dependsOn configurations.compileClasspath
from {
configurations.compileClasspath
.findAll { it.isDirectory() || it.name.endsWith('jar') }
.collect { it.isDirectory() ? it : zipTree(it) }
}
}
configurations {
instrumentationArchive
}
artifacts {
instrumentationArchive jar
}