Skip to content

Commit 0e178fe

Browse files
authored
Merge pull request eugenp#6272 from dkapil/feature/BAEL-2129_codemovement
Feature/bael 2129 codemovement
2 parents 8a26443 + b17a130 commit 0e178fe

15 files changed

Lines changed: 375 additions & 0 deletions

File tree

‎core-kotlin-2/.gitignore‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/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-2/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
## Relevant articles:

‎core-kotlin-2/build.gradle‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
3+
group 'com.baeldung.ktor'
4+
version '1.0-SNAPSHOT'
5+
6+
7+
buildscript {
8+
ext.kotlin_version = '1.2.41'
9+
10+
repositories {
11+
mavenCentral()
12+
}
13+
dependencies {
14+
15+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
16+
}
17+
}
18+
19+
apply plugin: 'java'
20+
apply plugin: 'kotlin'
21+
apply plugin: 'application'
22+
23+
mainClassName = 'APIServer.kt'
24+
25+
sourceCompatibility = 1.8
26+
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
27+
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
28+
29+
kotlin { experimental { coroutines "enable" } }
30+
31+
repositories {
32+
mavenCentral()
33+
jcenter()
34+
maven { url "https://dl.bintray.com/kotlin/ktor" }
35+
}
36+
sourceSets {
37+
main{
38+
kotlin{
39+
srcDirs 'com/baeldung/ktor'
40+
}
41+
}
42+
43+
}
44+
45+
dependencies {
46+
compile "ch.qos.logback:logback-classic:1.2.1"
47+
testCompile group: 'junit', name: 'junit', version: '4.12'
48+
}
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

‎core-kotlin-2/gradlew‎

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎core-kotlin-2/gradlew.bat‎

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎core-kotlin-2/pom.xml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<artifactId>core-kotlin-2</artifactId>
6+
<name>core-kotlin-2</name>
7+
<packaging>jar</packaging>
8+
9+
<parent>
10+
<groupId>com.baeldung</groupId>
11+
<artifactId>parent-kotlin</artifactId>
12+
<version>1.0.0-SNAPSHOT</version>
13+
<relativePath>../parent-kotlin</relativePath>
14+
</parent>
15+
16+
</project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<configuration>
2+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
3+
<encoder>
4+
<pattern>%d{YYYY-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
5+
</encoder>
6+
</appender>
7+
8+
<root level="INFO">
9+
<appender-ref ref="STDOUT"/>
10+
</root>
11+
</configuration>

‎core-kotlin-2/settings.gradle‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rootProject.name = 'KtorWithKotlin'
2+

0 commit comments

Comments
 (0)