diff --git a/buildSrc/src/main/kotlin/com.mongodb.intellij.plugin-component.gradle.kts b/buildSrc/src/main/kotlin/com.mongodb.intellij.plugin-component.gradle.kts index ce9ed4d0..f35b031d 100644 --- a/buildSrc/src/main/kotlin/com.mongodb.intellij.plugin-component.gradle.kts +++ b/buildSrc/src/main/kotlin/com.mongodb.intellij.plugin-component.gradle.kts @@ -120,12 +120,14 @@ jmhReport { } tasks { - register("buildProperties", WriteProperties::class) { - group = "build" + if (pluginBundle.enableBundle.get() == true) { + register("buildProperties", WriteProperties::class) { + group = "build" - destinationFile.set(project.layout.projectDirectory.file("src/main/resources/build.properties")) - property("pluginVersion", rootProject.version) - property("segmentApiKey", System.getenv("BUILD_SEGMENT_API_KEY") ?: "") + destinationFile.set(project.layout.projectDirectory.file("src/main/resources/build.properties")) + property("pluginVersion", rootProject.version) + property("segmentApiKey", System.getenv("BUILD_SEGMENT_API_KEY") ?: "") + } } named("test", Test::class) { @@ -204,8 +206,10 @@ tasks { version.set(libs.versions.intellij.remoteRobot) } - withType { - dependsOn("buildProperties") + if (pluginBundle.enableBundle.get() == true) { + withType { + dependsOn("buildProperties") + } } patchPluginXml { diff --git a/packages/mongodb-access-adapter/datagrip-access-adapter/src/main/resources/build.properties b/packages/mongodb-access-adapter/datagrip-access-adapter/src/main/resources/build.properties deleted file mode 100644 index e17d5768..00000000 --- a/packages/mongodb-access-adapter/datagrip-access-adapter/src/main/resources/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -pluginVersion=0.0.1 -segmentApiKey= diff --git a/packages/mongodb-dialects/java-driver/src/main/resources/build.properties b/packages/mongodb-dialects/java-driver/src/main/resources/build.properties deleted file mode 100644 index e17d5768..00000000 --- a/packages/mongodb-dialects/java-driver/src/main/resources/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -pluginVersion=0.0.1 -segmentApiKey= diff --git a/packages/mongodb-dialects/mongosh/src/main/resources/build.properties b/packages/mongodb-dialects/mongosh/src/main/resources/build.properties deleted file mode 100644 index e17d5768..00000000 --- a/packages/mongodb-dialects/mongosh/src/main/resources/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -pluginVersion=0.0.1 -segmentApiKey= diff --git a/packages/mongodb-dialects/spring-@query/src/main/resources/build.properties b/packages/mongodb-dialects/spring-@query/src/main/resources/build.properties deleted file mode 100644 index e17d5768..00000000 --- a/packages/mongodb-dialects/spring-@query/src/main/resources/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -pluginVersion=0.0.1 -segmentApiKey= diff --git a/packages/mongodb-dialects/spring-criteria/src/main/resources/build.properties b/packages/mongodb-dialects/spring-criteria/src/main/resources/build.properties deleted file mode 100644 index e17d5768..00000000 --- a/packages/mongodb-dialects/spring-criteria/src/main/resources/build.properties +++ /dev/null @@ -1,2 +0,0 @@ -pluginVersion=0.0.1 -segmentApiKey=