Skip to content

Commit 9e2a18a

Browse files
committed
[BAEL-8472] - Resolved conflict
1 parent 12124f3 commit 9e2a18a

29 files changed

Lines changed: 463 additions & 12 deletions

‎core-kotlin/README.md‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
- [Generics in Kotlin](http://www.baeldung.com/kotlin-generics)
99
- [Introduction to Kotlin Coroutines](http://www.baeldung.com/kotlin-coroutines)
1010
- [Destructuring Declarations in Kotlin](http://www.baeldung.com/kotlin-destructuring-declarations)
11-
- [Kotlin with Mockito](http://www.baeldung.com/kotlin-mockito)
1211
- [Lazy Initialization in Kotlin](http://www.baeldung.com/kotlin-lazy-initialization)
1312
- [Overview of Kotlin Collections API](http://www.baeldung.com/kotlin-collections-api)
1413
- [Converting a List to Map in Kotlin](http://www.baeldung.com/kotlin-list-to-map)
@@ -19,20 +18,14 @@
1918
- [Extension Methods in Kotlin](http://www.baeldung.com/kotlin-extension-methods)
2019
- [Infix Functions in Kotlin](http://www.baeldung.com/kotlin-infix-functions)
2120
- [Try-with-resources in Kotlin](http://www.baeldung.com/kotlin-try-with-resources)
22-
- [HTTP Requests with Kotlin and khttp](http://www.baeldung.com/kotlin-khttp)
23-
- [Kotlin Dependency Injection with Kodein](http://www.baeldung.com/kotlin-kodein-dependency-injection)
2421
- [Regular Expressions in Kotlin](http://www.baeldung.com/kotlin-regular-expressions)
2522
- [Objects in Kotlin](http://www.baeldung.com/kotlin-objects)
2623
- [Reading from a File in Kotlin](http://www.baeldung.com/kotlin-read-file)
2724
- [Guide to Kotlin @JvmField](http://www.baeldung.com/kotlin-jvm-field-annotation)
2825
- [Filtering Kotlin Collections](http://www.baeldung.com/kotlin-filter-collection)
2926
- [Writing to a File in Kotlin](http://www.baeldung.com/kotlin-write-file)
3027
- [Lambda Expressions in Kotlin](http://www.baeldung.com/kotlin-lambda-expressions)
31-
- [Writing Specifications with Kotlin and Spek](http://www.baeldung.com/kotlin-spek)
32-
- [Processing JSON with Kotlin and Klaxson](http://www.baeldung.com/kotlin-json-klaxson)
3328
- [Kotlin String Templates](http://www.baeldung.com/kotlin-string-template)
34-
- [Java EE 8 Security API](http://www.baeldung.com/java-ee-8-security)
35-
- [Kotlin with Ktor](http://www.baeldung.com/kotlin-ktor)
3629
- [Working with Enums in Kotlin](http://www.baeldung.com/kotlin-enum)
3730
- [Create a Java and Kotlin Project with Maven](http://www.baeldung.com/kotlin-maven-java-project)
3831
- [Reflection with Kotlin](http://www.baeldung.com/kotlin-reflection)
@@ -41,4 +34,4 @@
4134
- [Kotlin Constructors](https://www.baeldung.com/kotlin-constructors)
4235
- [Creational Design Patterns in Kotlin: Builder](https://www.baeldung.com/kotlin-builder-pattern)
4336
- [Kotlin Nested and Inner Classes](https://www.baeldung.com/kotlin-inner-classes)
44-
- [Guide to the Kotlin Exposed Framework](https://www.baeldung.com/kotlin-exposed-persistence)
37+
- [Guide to the Kotlin Exposed Framework](https://www.baeldung.com/kotlin-exposed-persistence)

‎core-kotlin/build.gradle‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,4 @@ dependencies {
5050
testCompile group: 'junit', name: 'junit', version: '4.12'
5151
implementation 'com.beust:klaxon:3.0.1'
5252

53-
}
54-
task runServer(type: JavaExec) {
55-
main = 'APIServer'
56-
classpath = sourceSets.main.runtimeClasspath
5753
}

‎kotlin-libraries/.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

‎kotlin-libraries/README.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Relevant articles:
2+
3+
- [Kotlin with Mockito](http://www.baeldung.com/kotlin-mockito)
4+
- [HTTP Requests with Kotlin and khttp](http://www.baeldung.com/kotlin-khttp)
5+
- [Kotlin Dependency Injection with Kodein](http://www.baeldung.com/kotlin-kodein-dependency-injection)
6+
- [Writing Specifications with Kotlin and Spek](http://www.baeldung.com/kotlin-spek)
7+
- [Processing JSON with Kotlin and Klaxson](http://www.baeldung.com/kotlin-json-klaxson)
8+
- [Java EE 8 Security API](http://www.baeldung.com/java-ee-8-security)
9+
- [Kotlin with Ktor](http://www.baeldung.com/kotlin-ktor)
10+
- [Idiomatic Logging in Kotlin](http://www.baeldung.com/kotlin-logging)

‎kotlin-libraries/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+
}
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

‎kotlin-libraries/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.

‎kotlin-libraries/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.

0 commit comments

Comments
 (0)