Skip to content

Commit ce56d8a

Browse files
committed
Remove classpath from jar file
1 parent ddae115 commit ce56d8a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

utbot-gradle/build.gradle

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//file:noinspection GroovyAssignabilityCheck
2+
13
plugins {
24
id 'java-gradle-plugin'
35
id 'com.gradle.plugin-publish' version '0.18.0'
@@ -30,10 +32,6 @@ configurations.all {
3032
exclude group: "org.apache.logging.log4j", module: "log4j-slf4j-impl"
3133
}
3234

33-
configurations {
34-
customCompile.extendsFrom api // then customCompile.setCanBeResolved == true
35-
}
36-
3735
/**
3836
* Shadow plugin unpacks the nested `utbot-instrumentation-<version>.jar`.
3937
* But we need it to be packed. Workaround: double-nest the jar.
@@ -48,9 +46,8 @@ task shadowBugWorkaround(type: Jar) {
4846
// Documentation: https://imperceptiblethoughts.com/shadow/
4947
shadowJar {
5048
manifest {
51-
// 'Fat JAR' is needed in org.utbot.framework.codegen.model.util.DependencyUtilsKt.checkDependencyIsFatJar
49+
// 'Fat JAR' is needed in DependencyUtilsKt.checkDependencyIsFatJar
5250
attributes 'JAR-Type': 'Fat JAR'
53-
attributes 'Class-Path': project.configurations.customCompile.collect { it.getName() }.join(' ')
5451
}
5552
archiveClassifier.set('')
5653
minimize()

0 commit comments

Comments
 (0)