Skip to content

Commit

Permalink
chore: fix packaging of the segment key
Browse files Browse the repository at this point in the history
  • Loading branch information
kmruiz committed Dec 10, 2024
1 parent 11050fe commit 801f18c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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") ?: "<none>")
destinationFile.set(project.layout.projectDirectory.file("src/main/resources/build.properties"))
property("pluginVersion", rootProject.version)
property("segmentApiKey", System.getenv("BUILD_SEGMENT_API_KEY") ?: "<none>")
}
}

named("test", Test::class) {
Expand Down Expand Up @@ -204,8 +206,10 @@ tasks {
version.set(libs.versions.intellij.remoteRobot)
}

withType<ProcessResources> {
dependsOn("buildProperties")
if (pluginBundle.enableBundle.get() == true) {
withType<ProcessResources> {
dependsOn("buildProperties")
}
}

patchPluginXml {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 801f18c

Please sign in to comment.