Skip to content

Commit e8a7396

Browse files
authored
Merge pull request eugenp#4618 from smmansoor/master
[BAEL-1753] Moved kotlin-ktor to core-kotlin
2 parents 11edaaf + a78aef2 commit e8a7396

19 files changed

Lines changed: 418 additions & 1 deletion

File tree

‎core-kotlin/.gitignore‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
/bin/
2+
3+
#ignore gradle
4+
.gradle/
5+
6+
7+
#ignore build and generated files
8+
build/
9+
node/
10+
out/
11+
12+
#ignore installed node modules and package lock file
13+
node_modules/
14+
package-lock.json

‎core-kotlin/build.gradle‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
3+
group 'com.baeldung.ktor'
4+
version '1.0-SNAPSHOT'
5+
6+
7+
buildscript {
8+
ext.kotlin_version = '1.2.41'
9+
ext.ktor_version = '0.9.2'
10+
11+
repositories {
12+
mavenCentral()
13+
}
14+
dependencies {
15+
16+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
17+
}
18+
}
19+
20+
apply plugin: 'java'
21+
apply plugin: 'kotlin'
22+
apply plugin: 'application'
23+
24+
mainClassName = 'APIServer.kt'
25+
26+
sourceCompatibility = 1.8
27+
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
28+
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
29+
30+
kotlin { experimental { coroutines "enable" } }
31+
32+
repositories {
33+
mavenCentral()
34+
jcenter()
35+
maven { url "https://dl.bintray.com/kotlin/ktor" }
36+
}
37+
sourceSets {
38+
main{
39+
kotlin{
40+
srcDirs 'com/baeldung/ktor'
41+
}
42+
}
43+
44+
}
45+
46+
dependencies {
47+
compile "io.ktor:ktor-server-netty:$ktor_version"
48+
compile "ch.qos.logback:logback-classic:1.2.1"
49+
compile "io.ktor:ktor-gson:$ktor_version"
50+
testCompile group: 'junit', name: 'junit', version: '4.12'
51+
implementation 'com.beust:klaxon:3.0.1'
52+
53+
}
54+
task runServer(type: JavaExec) {
55+
main = 'APIServer'
56+
classpath = sourceSets.main.runtimeClasspath
57+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
53.1 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
zipStoreBase=GRADLE_USER_HOME
4+
zipStorePath=wrapper/dists
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip

0 commit comments

Comments
 (0)