Skip to content

Add utbot-instrumentation jar into CLI resources #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion utbot-cli/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apply from: "${parent.projectDir}/gradle/include/jvm-project.gradle"

configurations {
fetchInstrumentationJar
}

compileKotlin {
kotlinOptions {
allWarningsAsErrors = false
Expand All @@ -9,7 +13,6 @@ compileKotlin {
dependencies {
api project(":utbot-framework")
api project(':utbot-summary')
api project(':utbot-instrumentation')

implementation group: 'org.mockito', name: 'mockito-core', version: mockito_version
// Without this dependency testng tests do not run.
Expand All @@ -24,6 +27,13 @@ dependencies {
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: log4j2_version
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4j2_version
implementation group: 'org.jacoco', name: 'org.jacoco.report', version: jacoco_version
fetchInstrumentationJar project(path: ':utbot-instrumentation', configuration:'instrumentationArchive')
}

processResources {
from(configurations.fetchInstrumentationJar) {
into "lib"
}
}

task createProperties(dependsOn: processResources) {
Expand Down Expand Up @@ -57,3 +67,4 @@ jar {

duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}