Skip to content

Commit

Permalink
Use example file as it is build to allow building from CI
Browse files Browse the repository at this point in the history
COAND-831
  • Loading branch information
jreij committed Mar 8, 2024
1 parent 1bbe309 commit 0fe89b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ apply from: "${rootDir}/config/gradle/ci.gradle"

if (file("local.gradle").exists()) {
apply from: "local.gradle"
} else if (System.getenv('CI')) {
// if building from CI use example file as it is to ensure the build passes
apply from: "example.local.gradle"
} else {
throw new GradleException("File example-app/local.gradle not found. Check example-app/README.md for more instructions.")
}
Expand Down

0 comments on commit 0fe89b2

Please sign in to comment.