Skip to content

Commit fbd7277

Browse files
author
Rustam Sadykov
committed
fix instrumentation jar
1 parent 85e08c5 commit fbd7277

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

utbot-instrumentation/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jar {
2828
dependsOn configurations.compileClasspath
2929
from {
3030
sourceSets.main.output + configurations.compileClasspath
31-
.findAll {it.name.endsWith('jar') }
32-
.collect { zipTree(it) }
31+
.findAll { it.isDirectory() || it.name.endsWith('jar') }
32+
.collect { it.isDirectory() ? it : zipTree(it) }
3333
}
3434
}
3535

utbot-junit-contest/build.gradle

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,15 @@ jar { dependsOn classes
9898

9999
task monitoringJar(type: Jar) { dependsOn classes
100100

101-
archiveName 'monitoring.jar'
101+
archiveBaseName.set('monitoring')
102+
archiveClassifier.set('')
103+
archiveVersion.set('')
104+
105+
dependsOn configurations.runtimeClasspath
106+
from {
107+
sourceSets.main.output + configurations.runtimeClasspath
108+
.collect { it.isDirectory() ? it : zipTree(it) }
109+
}
102110

103111
manifest {
104112
attributes 'Main-Class': 'org.utbot.monitoring.StatisticsMonitoringKt'
@@ -108,12 +116,5 @@ task monitoringJar(type: Jar) { dependsOn classes
108116
attributes 'JAR-Type': 'Fat JAR'
109117
}
110118

111-
version '1.0'
112-
113-
dependsOn configurations.runtimeClasspath
114-
from {
115-
sourceSets.main.output + configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
116-
}
117-
118119
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
119120
}

0 commit comments

Comments
 (0)