Skip to content

Commit d772b8c

Browse files
committed
Fix #279 : java.util.zip.ZipException: duplicate entry: letsPlotKotlinAPI/version.properties
1 parent a423e0c commit d772b8c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

future_changes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,11 @@ GeoTools [v 33.2](https://github.com/geotools/geotools/releases/tag/33.2)
7878
### Fixed
7979

8080
- `geomBoxplot`: unable to draw a y-oriented plot with `stat = Stat.identity` [[#1319](https://github.com/JetBrains/lets-plot/issues/1319)].
81-
- Can't add layer which uses continuous data to a plot where other layers use discrete input [[#1323](https://github.com/JetBrains/lets-plot/issues/1323)].
81+
- Can't add a layer which uses continuous data to a plot where other layers use discrete input [[#1323](https://github.com/JetBrains/lets-plot/issues/1323)].
8282
- Multiline legend labels were not vertically centered with their keys [[#1331](https://github.com/JetBrains/lets-plot/issues/1331)].
8383
- Poor alignment in legend between columns [[#1332](https://github.com/JetBrains/lets-plot/issues/1332)].
8484
- Ordered data was re-ordered by `geomBoxplot` [[#1342](https://github.com/JetBrains/lets-plot/issues/1342)].
8585
- `asDiscrete()` does not work with aes addition [[#1363](https://github.com/JetBrains/lets-plot/issues/1363)].
8686
- Sec: CVE-2024-47554 (commons-io) [[#1231](https://github.com/JetBrains/lets-plot/issues/1231)]
87+
- java.util.zip.ZipException: duplicate entry: letsPlotKotlinAPI/version.properties [[#279](https://github.com/JetBrains/lets-plot-kotlin/issues/279)]
8788

plot-api/build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,17 @@ tasks {
191191
// print("${project.name}: ${uri(project.localMavenRepository)}")
192192
//}
193193

194-
// Provide jvm resources to jupyter module
195-
// https://youtrack.jetbrains.com/issue/KTIJ-16582/Consumer-Kotlin-JVM-library-cannot-access-a-Kotlin-Multiplatform-JVM-target-resources-in-multi-module-Gradle-project
196194
tasks {
195+
// Copy resources from resources/jvm/main to classes/kotlin/jvm/main to fix:
196+
// https://youtrack.jetbrains.com/issue/KTIJ-16582/Consumer-Kotlin-JVM-library-cannot-access-a-Kotlin-Multiplatform-JVM-target-resources-in-multi-module-Gradle-project
197197
val jvmProcessResources by getting
198198
val fixMissingResources by creating(Copy::class) {
199199
dependsOn(jvmProcessResources)
200200
from(layout.buildDirectory.dir("processedResources/jvm/main"))
201201
into(layout.buildDirectory.dir("classes/kotlin/jvm/main"))
202-
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
203202
}
203+
// Set EXCLUDE strategy for duplicates to avoid conflicts when building DMG deliverable.
204+
// See: https://github.com/JetBrains/lets-plot-kotlin/issues/279
204205
val jvmJar by getting(Jar::class) {
205206
dependsOn(fixMissingResources)
206207
duplicatesStrategy = DuplicatesStrategy.EXCLUDE

0 commit comments

Comments
 (0)