Skip to content

Commit fb44cb5

Browse files
committed
Shrink & relocate deps in the agent JAR
1 parent e06a004 commit fb44cb5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

build.gradle

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,21 @@ test {
5454
dependsOn(':test-app:shadowJar')
5555
useJUnitPlatform()
5656
}
57+
58+
shadowJar {
59+
minimize()
60+
exclude '**/*.kotlin_metadata'
61+
exclude '**/*.kotlin_module'
62+
exclude '**/*.kotlin_builtins'
63+
exclude '**/module_info.class'
64+
exclude 'META-INF/maven/**'
65+
}
66+
67+
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
68+
69+
task relocateShadowJar(type: ConfigureShadowRelocation) {
70+
target = tasks.shadowJar
71+
prefix = "tech.httptoolkit.relocated"
72+
}
73+
74+
tasks.shadowJar.dependsOn tasks.relocateShadowJar

0 commit comments

Comments
 (0)