Skip to content

Commit

Permalink
[runningcode#299] Don't check dependOnAssemble on root project
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanalvarado committed Mar 7, 2023
1 parent 74731ed commit a2c9026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class FladlePluginDelegate {
environment(mapOf("GOOGLE_APPLICATION_CREDENTIALS" to config.serviceAccountCredentials.get()))
}
dependsOn(writeConfigProps)
if (config.dependOnAssemble.isPresent && config.dependOnAssemble.get()) {
if (project.name != project.rootProject.name && config.dependOnAssemble.isPresent && config.dependOnAssemble.get()) {
val testedExtension = requireNotNull(project.extensions.findByType(TestedExtension::class.java)) { "Could not find TestedExtension in ${project.name}" }
testedExtension.testVariants.configureEach {
if (testedVariant.isExpectedVariant(config)) {
Expand Down

0 comments on commit a2c9026

Please sign in to comment.