Skip to content

Commit 42d18ce

Browse files
authored
Set duplicatesStrategy to EXCLUDE for resource processing tasks (#2)
* Set `duplicatesStrategy` to `EXCLUDE` for resource processing tasks Fixes "Entry courses/Introduction to Python.zip is a duplicate but no duplicate handling strategy has been set" error * Downgrade IntelliJ Platform Plugin to version 2.5.0 for compatibility
1 parent b0c24bb commit 42d18ce

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

buildSrc/src/main/kotlin/intellij-plugin-common-conventions.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ tasks {
7070
inputs.property("environmentName", providers.gradleProperty("environmentName"))
7171
}
7272

73+
processResources {
74+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
75+
}
76+
77+
processTestResources {
78+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
79+
}
80+
7381
register(VERIFY_CLASSES_TASK_NAME) {
7482
dependsOn(jar)
7583
// `verifyClasses` relies on resources from the current and `intellij-plugin` modules.

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mockwebserver = { group = "com.squareup.okhttp3", name = "mockwebserver", versio
2828
openTest4J = { group = "org.opentest4j", name = "opentest4j", version = "1.3.0" }
2929

3030
[plugins]
31-
intelliJPlatformPlugin = { id = "org.jetbrains.intellij.platform", version = "2.10.2" }
31+
intelliJPlatformPlugin = { id = "org.jetbrains.intellij.platform", version = "2.5.0" }
3232
kotlinPlugin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
3333
kotlinSerializationPlugin = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
3434
propertiesPlugin = { id = "net.saliman.properties", version = "1.5.2" }

0 commit comments

Comments
 (0)