Skip to content

Commit fce7ed7

Browse files
committed
Allow CI builds without schema download endpoint
1 parent 622a478 commit fce7ed7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/build.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,11 @@ dependencies {
108108
apollo {
109109
service("service") {
110110
packageName.set("com.example.score")
111-
introspection {
112-
endpointUrl.set(secrets.getProperty("API_URL_DEV"))
113-
schemaFile.set(file("src/main/graphql/schema.graphqls"))
111+
secrets.getProperty("API_URL_DEV")?.takeIf { it.isNotBlank() }?.let { apiUrl ->
112+
introspection {
113+
endpointUrl.set(apiUrl)
114+
schemaFile.set(file("src/main/graphql/schema.graphqls"))
115+
}
114116
}
115117
}
116118
}

0 commit comments

Comments
 (0)