Skip to content

Commit 35abaeb

Browse files
JAVA-32739 Move code of kotlin/ktor article from kotlin-libraries to kotlin-ktor
2 parents f468fc0 + 72ec117 commit 35abaeb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

kotlin-ktor/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ This module contains articles about Kotlin Libraries.
55
### Relevant articles:
66
- [An Introduction to Running GraphQL in Kotlin and Ktor](https://www.baeldung.com/kotlin/graphql-ktor)
77
- [Creating a Web Application With Ktor and Thymeleaf](https://www.baeldung.com/kotlin/ktor-thymeleaf-web-application)
8+
- [Kotlin with Ktor](https://www.baeldung.com/kotlin/ktor)
89
- [A Look at the Ktor Client](https://www.baeldung.com/kotlin/ktor-client)
910
- [Testing Ktor Controllers](https://www.baeldung.com/kotlin/ktor-test-controllers)

kotlin-ktor/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ dependencies {
3030

3131
implementation("ch.qos.logback", "logback-classic", logbackVersion)
3232

33+
compile("io.ktor", "ktor-gson" ktorVersion)
34+
3335
testImplementation("io.ktor", "ktor-client-mock", ktorVersion)
3436
testImplementation("io.ktor", "ktor-server-tests", ktorVersion)
3537

3638
testImplementation("io.ktor", "ktor-serialization-kotlinx-json", ktorVersion)
3739
testImplementation("org.jetbrains.kotlin", "kotlin-test-junit", kotlinTestUnit)
3840
testImplementation("org.seleniumhq.selenium", "selenium-java", seleniumVersion)
39-
4041
}
4142

4243
plugins {
@@ -66,4 +67,9 @@ graphql {
6667
schemaFile = file("src/main/resources/client/schema.graphql")
6768
serializer = GraphQLSerializer.JACKSON
6869
}
70+
}
71+
72+
task runServer(type: JavaExec) {
73+
main = 'APIServer'
74+
classpath = sourceSets.main.runtimeClasspath
6975
}

kotlin-libraries/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ This module contains articles about Kotlin Libraries.
88
- [Processing JSON with Kotlin and Klaxson](https://www.baeldung.com/kotlin/json-klaxson)
99
- [Guide to the Kotlin Exposed Framework](https://www.baeldung.com/kotlin/exposed-persistence)
1010
- [Introduction to Arrow in Kotlin](https://www.baeldung.com/kotlin/arrow)
11-
- [Kotlin with Ktor](https://www.baeldung.com/kotlin/ktor)
1211
- [REST API With Kotlin and Kovert](https://www.baeldung.com/kotlin/kovert)
1312
- More articles: [[next -->]](../kotlin-libraries-2)

kotlin-libraries/build.gradle

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ sourceSets {
4747
dependencies {
4848
compile "io.ktor:ktor-server-netty:$ktor_version"
4949
compile "ch.qos.logback:logback-classic:1.2.1"
50-
compile "io.ktor:ktor-gson:$ktor_version"
5150
compile "khttp:khttp:$khttp_version"
5251
testCompile group: 'junit', name: 'junit', version: '4.12'
5352
testCompile group: 'org.jetbrains.spek', name: 'spek-api', version: '1.1.5'
@@ -56,8 +55,3 @@ dependencies {
5655
implementation 'com.beust:klaxon:3.0.1'
5756

5857
}
59-
60-
task runServer(type: JavaExec) {
61-
main = 'APIServer'
62-
classpath = sourceSets.main.runtimeClasspath
63-
}

0 commit comments

Comments
 (0)