Skip to content

Commit 48e5641

Browse files
Add utbot-instrumentation jar into Java CLI resources (#352)
1 parent ee71e2b commit 48e5641

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

utbot-cli/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"
22

3+
configurations {
4+
fetchInstrumentationJar
5+
}
6+
37
compileKotlin {
48
kotlinOptions {
59
allWarningsAsErrors = false
@@ -9,7 +13,6 @@ compileKotlin {
913
dependencies {
1014
api project(":utbot-framework")
1115
api project(':utbot-summary')
12-
api project(':utbot-instrumentation')
1316

1417
implementation group: 'org.mockito', name: 'mockito-core', version: mockito_version
1518
// Without this dependency testng tests do not run.
@@ -24,6 +27,13 @@ dependencies {
2427
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j2_version
2528
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4j2_version
2629
implementation group: 'org.jacoco', name: 'org.jacoco.report', version: jacoco_version
30+
fetchInstrumentationJar project(path: ':utbot-instrumentation', configuration:'instrumentationArchive')
31+
}
32+
33+
processResources {
34+
from(configurations.fetchInstrumentationJar) {
35+
into "lib"
36+
}
2737
}
2838

2939
task createProperties(dependsOn: processResources) {
@@ -57,3 +67,4 @@ jar {
5767

5868
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
5969
}
70+

0 commit comments

Comments
 (0)