File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,16 @@ plugins {
6
6
7
7
apply from : " ${ parent.projectDir} /gradle/include/jvm-project.gradle"
8
8
9
+ configurations {
10
+ fetchInstrumentationJar
11
+ }
12
+
9
13
dependencies {
10
14
shadow gradleApi()
11
15
shadow localGroovy()
12
16
13
17
implementation project(" :utbot-framework" )
18
+ fetchInstrumentationJar project(path : ' :utbot-instrumentation' , configuration : ' instrumentationArchive' )
14
19
15
20
implementation group : ' io.github.microutils' , name : ' kotlin-logging' , version : kotlin_logging_version
16
21
}
30
35
}
31
36
}
32
37
38
+ /**
39
+ * Shadow plugin unpacks the nested `utbot-instrumentation-<version>.jar`.
40
+ * But we need it to be packed. Workaround: double-nest the jar.
41
+ */
42
+ task shadowBugWorkaround (type : Jar ) {
43
+ destinationDir file(' build/shadow-bug-workaround' )
44
+ from(configurations. fetchInstrumentationJar) {
45
+ into " lib"
46
+ }
47
+ }
48
+
49
+ // Documentation: https://imperceptiblethoughts.com/shadow/
33
50
shadowJar {
34
51
archiveClassifier. set(' ' )
35
52
minimize()
53
+ from shadowBugWorkaround
36
54
}
37
55
38
56
// no module metadata => no dependency on the `utbot-framework`
You can’t perform that action at this time.
0 commit comments