Skip to content

Commit

Permalink
Fix a configuration cache issues
Browse files Browse the repository at this point in the history
  • Loading branch information
BoD committed Jul 10, 2023
1 parent 29ea874 commit f41c288
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,16 @@ configurations.named("javaCodegenSourcesElements").configure {

val checkPersistedQueryManifest = tasks.register("checkPersistedQueryManifest") {
dependsOn("generateApolloSources")
val buildFile = file("build/generated/manifest/apollo/upload-kotlin/persistedQueryManifest.json")
val fixtureFile = file("testFixtures/manifest.json")
doLast {
check(
file("build/generated/manifest/apollo/upload-kotlin/persistedQueryManifest.json").readText() == file("testFixtures/manifest.json").readText()
buildFile.readText() == fixtureFile.readText()
) {
"Persisted Query Manifest has changed"
}
}
}
tasks.named("jvmTest").configure {
dependsOn(checkPersistedQueryManifest)
}
}

0 comments on commit f41c288

Please sign in to comment.