Skip to content

Commit 002cbd1

Browse files
authored
Merge pull request #126 from navikt/dep-clean
Rydd opp dependencies og oppgrader litt versjoner
2 parents 107b71e + 9e61ec2 commit 002cbd1

File tree

3 files changed

+22
-33
lines changed

3 files changed

+22
-33
lines changed

build.gradle.kts

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ import com.expediagroup.graphql.plugin.gradle.tasks.GraphQLGenerateClientTask
55
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
66
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
77

8-
val ktor_version: String by project
9-
val kotlin_version: String by project
10-
val kotlinx_datetime_version: String by project
11-
val kompendium_version: String by project
12-
val logback_version: String by project
13-
val logstash_version: String by project
14-
val prometeus_version: String by project
15-
val nav_common_version: String by project
16-
val tjenestespec_version: String by project
17-
val modia_common_utils_version: String by project
18-
val junit_version: String by project
19-
val graphql_kotlin_version: String by project
8+
val ktor_version = "2.3.12"
9+
val kotlin_version = "2.0.21"
10+
val kotlinx_datetime_version = "0.4.0"
11+
val kompendium_version = "3.14.4"
12+
val logback_version = "1.4.12"
13+
val logstash_version = "7.2"
14+
val prometeus_version = "1.6.3"
15+
val nav_common_version = "2.2023.01.10_13.49-81ddc732df3a"
16+
val tjenestespec_version = "1.2020.06.16-14.51-3b45df54f90a"
17+
val modia_common_utils_version = "1.2023.07.20-13.43-64707e48b53b"
18+
val junit_version = "5.8.2"
19+
val graphql_kotlin_version = "6.4.0"
2020

2121
plugins {
2222
application
@@ -60,11 +60,14 @@ repositories {
6060
dependencies {
6161
implementation("io.ktor:ktor-server:$ktor_version")
6262
implementation("io.ktor:ktor-server-core:$ktor_version")
63+
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
6364
implementation("io.ktor:ktor-server-auth:$ktor_version")
6465
implementation("io.ktor:ktor-server-auth-jwt:$ktor_version")
66+
implementation("io.ktor:ktor-server-swagger-jvm:$ktor_version")
6567
implementation("io.ktor:ktor-serialization:$ktor_version")
6668
implementation("io.ktor:ktor-server-netty:$ktor_version")
6769
implementation("io.ktor:ktor-client-core:$ktor_version")
70+
implementation("io.ktor:ktor-client-okhttp-jvm:$ktor_version")
6871
implementation("io.ktor:ktor-client-okhttp:$ktor_version")
6972
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor_version")
7073
implementation("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinx_datetime_version")
@@ -83,20 +86,20 @@ dependencies {
8386
implementation("ch.qos.logback:logback-classic:$logback_version")
8487
implementation("net.logstash.logback:logstash-logback-encoder:$logstash_version")
8588
implementation("com.expediagroup:graphql-kotlin-ktor-client:$graphql_kotlin_version")
86-
implementation("io.ktor:ktor-client-okhttp-jvm:2.3.12")
87-
implementation("io.ktor:ktor-server-core-jvm:2.3.12")
88-
implementation("io.ktor:ktor-server-swagger-jvm:2.3.12")
8989

90+
testImplementation(kotlin("test"))
91+
testImplementation("io.ktor:ktor-server-test-host:$ktor_version")
92+
testImplementation("io.ktor:ktor-server-test-host-jvm:$ktor_version")
93+
testImplementation("io.ktor:ktor-client-mock-jvm:$ktor_version")
9094
testImplementation("io.mockk:mockk:1.13.13")
91-
testImplementation("io.ktor:ktor-server-tests:2.3.12")
92-
testImplementation("io.ktor:ktor-client-mock:$ktor_version")
9395
testImplementation("org.junit.jupiter:junit-jupiter:$junit_version")
9496
}
9597

9698
tasks.withType<Test> {
9799
useJUnitPlatform()
98100

99-
testLogging { // This is for logging and can be removed.
101+
testLogging {
102+
// This is for logging and can be removed.
100103
events("passed", "skipped", "failed")
101104
}
102105
}

gradle.properties

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
ktor_version=2.3.11
2-
kotlin_version=2.0.0
3-
kotlinx_datetime_version=0.4.0
4-
kompendium_version=3.14.4
5-
logback_version=1.2.11
6-
logstash_version=7.2
7-
kotlin.code.style=official
8-
prometeus_version=1.6.3
9-
nav_common_version=2.2023.01.10_13.49-81ddc732df3a
10-
tjenestespec_version=1.2020.06.16-14.51-3b45df54f90a
11-
modia_common_utils_version=1.2023.07.20-13.43-64707e48b53b
12-
junit_version=5.8.2
13-
graphql_kotlin_version=6.4.0

src/test/kotlin/no/nav/ApplicationTest.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package no.nav
22

3-
import io.ktor.client.call.*
43
import io.ktor.client.request.*
54
import io.ktor.client.statement.*
65
import io.ktor.http.*
@@ -13,7 +12,7 @@ import org.junit.jupiter.api.Test
1312

1413
class ApplicationTest {
1514
@Test
16-
internal fun testRoot() {
15+
fun testRoot() {
1716
testApplication {
1817
application {
1918
configureOpenApi()

0 commit comments

Comments
 (0)