@@ -17,7 +17,7 @@ dependencies {
17
17
implementation(" com.fasterxml.jackson.core:jackson-databind:2.13.4.2" )
18
18
implementation(" com.fasterxml.jackson.module:jackson-module-kotlin:2.13.4" )
19
19
implementation(" org.yaml:snakeyaml:1.33" )
20
- implementation (" com.ibm.icu:icu4j:71.1" )
20
+ shadow (" com.ibm.icu:icu4j:71.1" )
21
21
shadow(kotlin(" stdlib-jdk8" ))
22
22
shadow(kotlin(" reflect" ))
23
23
shadow(" org.slf4j:slf4j-api:2.0.3" )
@@ -34,7 +34,7 @@ tasks.processResources.get().dependsOn(tasks["yaml2json"])
34
34
35
35
configurations {
36
36
create(" integrationImplementation" ) { extendsFrom(testImplementation.get()) }
37
- create(" integrationRuntimeOnly" ) { extendsFrom(testRuntimeOnly.get()) }
37
+ create(" integrationRuntimeOnly" ) { extendsFrom(testRuntimeOnly.get(), configurations.getByName( " shadow " ) ) }
38
38
}
39
39
40
40
sourceSets {
@@ -71,18 +71,18 @@ tasks.withType<Jar> {
71
71
}
72
72
73
73
val shadowJar by tasks.getting(ShadowJar ::class ) {
74
+ minimize()
74
75
archiveBaseName.set(rootProject.name)
75
76
archiveClassifier.set(" " )
76
77
relocate(" com.fasterxml" , " faker.com.fasterxml" )
77
78
relocate(" org.yaml" , " faker.org.yaml" )
78
- relocate( " com.ibm.icu " , " faker.com.ibm.icu " )
79
+ exclude( " **/locales/*.yml " ) // jar already contains json files
79
80
dependencies {
80
81
exclude(" module-info.class" )
81
82
include {
82
83
it.name.startsWith(project.group.toString()) ||
83
84
it.name.startsWith(" com.fasterxml" ) ||
84
- it.name.startsWith(" org.yaml" ) ||
85
- it.name.startsWith(" com.ibm.icu" )
85
+ it.name.startsWith(" org.yaml" )
86
86
}
87
87
}
88
88
manifest {
0 commit comments