Skip to content

Commit

Permalink
Fix test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mpawliszyn committed Oct 28, 2024
1 parent 5162af7 commit a28289b
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions client-sqldelight-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ plugins {
id("com.vanniktech.maven.publish.base")
}

// This module is included in two projects:
// - In the root project where it's released as one of our artifacts
// - In build-support project where we can use it for the test-app and samples.
// This module is used in two places:
//
// - In the root project, so we can:
// - publish the plugin
// - run the plugin's own unit test
//
// - In build-support project
// - In this project, we consume it internally.
//
// We only want to publish when it's being built in the root project.
if (rootProject.name == "backfila") {
Expand Down Expand Up @@ -64,6 +69,13 @@ tasks {
}
)
systemProperty("backfilaVersion", rootProject.findProperty("VERSION_NAME") ?: "0.0-SNAPSHOT")

if (rootProject.name == "backfila") {
dependsOn(":client:publishAllPublicationsToTestMavenRepository")
dependsOn(":client-base:publishAllPublicationsToTestMavenRepository")
dependsOn(":client-sqldelight:publishAllPublicationsToTestMavenRepository")
dependsOn(":client-sqldelight-gradle-plugin:publishAllPublicationsToTestMavenRepository")
}
}
}

Expand Down

0 comments on commit a28289b

Please sign in to comment.