Skip to content

Commit 9883581

Browse files
committed
Oppdater graphql-kotlin
1 parent d026539 commit 9883581

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ val generateSAFClient by tasks.creating(GraphQLGenerateClientTask::class) {
127127
val downloadPDLSchema by tasks.creating(GraphQLDownloadSDLTask::class) {
128128
endpoint.set("https://navikt.github.io/pdl/pdl-api-sdl.graphqls")
129129
outputFile.set(file("${project.projectDir}/src/main/resources/pdl/schema.graphqls"))
130+
dependsOn("generateSAFClient")
130131
}
131132
val generatePDLClient by tasks.creating(GraphQLGenerateClientTask::class) {
132133
packageName.set("no.nav.api.generated.pdl")
@@ -156,3 +157,9 @@ val generatePDLClient by tasks.creating(GraphQLGenerateClientTask::class) {
156157
)
157158
dependsOn("downloadPDLSchema")
158159
}
160+
161+
tasks {
162+
processResources {
163+
dependsOn("generatePDLClient")
164+
}
165+
}

0 commit comments

Comments
 (0)