Skip to content

Commit

Permalink
⚗️ Konfer graphql-plugin direkte i stedet for å fikle med task
Browse files Browse the repository at this point in the history
  • Loading branch information
havstein committed Nov 29, 2023
1 parent 0f3a433 commit ac70b8f
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions spesialist-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateClientTask

val testcontainersVersion = "1.19.0"
val graphQLKotlinVersion = "6.5.3"
val ktorVersion = "2.3.4"
Expand All @@ -18,15 +16,12 @@ dependencies {
testImplementation("io.ktor:ktor-server-netty:$ktorVersion")
}

val graphqlGenerateClient by tasks.getting(GraphQLGenerateClientTask::class) {
graphql {
val baseDir = "${project.projectDir}/src/main/resources/graphql"

serializer.set(com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer.JACKSON)
packageName.set("no.nav.helse.spleis.graphql")
schemaFile.set(File("$baseDir/schema.graphql"))
queryFiles.from(
listOf(
File("$baseDir/hentSnapshot.graphql")
)
)
client {
schemaFile = file("$baseDir/schema.graphql")
queryFileDirectory = baseDir
packageName = "no.nav.helse.spleis.graphql"
serializer = com.expediagroup.graphql.plugin.gradle.config.GraphQLSerializer.JACKSON
}
}

0 comments on commit ac70b8f

Please sign in to comment.