@@ -14,7 +14,11 @@ plugins {
14
14
15
15
group = " no.nav"
16
16
version = " 0.0.1-SNAPSHOT"
17
- java.sourceCompatibility = JavaVersion .VERSION_21
17
+
18
+ java {
19
+ sourceCompatibility = JavaVersion .VERSION_21
20
+ targetCompatibility = JavaVersion .VERSION_21
21
+ }
18
22
19
23
configurations {
20
24
compileOnly {
@@ -107,6 +111,7 @@ dependencies {
107
111
// Database
108
112
runtimeOnly(" org.postgresql:postgresql:$postgresqlVersion " )
109
113
implementation(" org.flywaydb:flyway-core" )
114
+ implementation(" org.flywaydb:flyway-database-postgresql" )
110
115
testImplementation(" org.testcontainers:junit-jupiter:$testContainersVersion " )
111
116
testImplementation(" org.testcontainers:postgresql:$testContainersVersion " )
112
117
@@ -159,9 +164,8 @@ tasks.withType<Test> {
159
164
}
160
165
161
166
tasks.withType<KotlinCompile > {
162
- kotlinOptions {
163
- freeCompilerArgs = listOf (" -Xjsr305=strict" )
164
- jvmTarget = " 21"
167
+ compilerOptions {
168
+ freeCompilerArgs.add(" -Xjsr305=strict" )
165
169
}
166
170
}
167
171
@@ -196,13 +200,13 @@ sonarqube {
196
200
* For mer info, se lenke under
197
201
* https://opensource.expediagroup.com/graphql-kotlin/docs/plugins/gradle-plugin-usage#generating-multiple-clients
198
202
*/
199
- val graphqlGenerateClient by tasks.getting(GraphQLGenerateClientTask ::class ) {
203
+ val generateSafGraphqlClient by tasks.getting(GraphQLGenerateClientTask ::class ) {
200
204
queryFileDirectory.set(file(" ${project.projectDir} /src/main/resources/saf" ))
201
205
schemaFile.set(file(" ${project.projectDir} /src/main/resources/saf/saf-api-sdl.graphqls" ))
202
206
packageName.set(" no.nav.sifinnsynapi.saf.generated" )
203
207
}
204
208
205
- val graphqlGenerateOtherClient by tasks.creating(GraphQLGenerateClientTask ::class ) {
209
+ val generateSafSelvbetjeningGraphqlClient by tasks.creating(GraphQLGenerateClientTask ::class ) {
206
210
queryFileDirectory.set(file(" ${project.projectDir} /src/main/resources/safselvbetjening" ))
207
211
schemaFile.set(file(" ${project.projectDir} /src/main/resources/safselvbetjening/saf-selvbetjening-sdl.graphqls" ))
208
212
packageName.set(" no.nav.sifinnsynapi.safselvbetjening.generated" )
0 commit comments