Skip to content

Commit 20137eb

Browse files
authored
Merge pull request eugenp#5203 from amit2103/BAEL-8472
[BAEL-8472] - Resolved conflict
2 parents 12124f3 + f3e7182 commit 20137eb

37 files changed

Lines changed: 483 additions & 75 deletions

‎core-kotlin/README.md‎

Lines changed: 1 addition & 9 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,26 +18,19 @@
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)
3932
- [Get a Random Number in Kotlin](http://www.baeldung.com/kotlin-random-number)
4033
- [Idiomatic Logging in Kotlin](http://www.baeldung.com/kotlin-logging)
4134
- [Kotlin Constructors](https://www.baeldung.com/kotlin-constructors)
4235
- [Creational Design Patterns in Kotlin: Builder](https://www.baeldung.com/kotlin-builder-pattern)
43-
- [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)
36+
- [Kotlin Nested and Inner Classes](https://www.baeldung.com/kotlin-inner-classes)

‎core-kotlin/build.gradle‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ version '1.0-SNAPSHOT'
66

77
buildscript {
88
ext.kotlin_version = '1.2.41'
9-
ext.ktor_version = '0.9.2'
109

1110
repositories {
1211
mavenCentral()
@@ -44,14 +43,6 @@ sourceSets {
4443
}
4544

4645
dependencies {
47-
compile "io.ktor:ktor-server-netty:$ktor_version"
4846
compile "ch.qos.logback:logback-classic:1.2.1"
49-
compile "io.ktor:ktor-gson:$ktor_version"
5047
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
5748
}

‎core-kotlin/pom.xml‎

Lines changed: 0 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,7 @@
1212
<relativePath>../parent-kotlin</relativePath>
1313
</parent>
1414

15-
<repositories>
16-
<repository>
17-
<id>exposed</id>
18-
<name>exposed</name>
19-
<url>https://dl.bintray.com/kotlin/exposed</url>
20-
</repository>
21-
</repositories>
22-
2315
<dependencies>
24-
<dependency>
25-
<groupId>org.jetbrains.spek</groupId>
26-
<artifactId>spek-api</artifactId>
27-
<version>1.1.5</version>
28-
<scope>test</scope>
29-
</dependency>
30-
<dependency>
31-
<groupId>org.jetbrains.spek</groupId>
32-
<artifactId>spek-subject-extension</artifactId>
33-
<version>1.1.5</version>
34-
<scope>test</scope>
35-
</dependency>
36-
<dependency>
37-
<groupId>org.jetbrains.spek</groupId>
38-
<artifactId>spek-junit-platform-engine</artifactId>
39-
<version>1.1.5</version>
40-
<scope>test</scope>
41-
</dependency>
4216
<dependency>
4317
<groupId>org.apache.commons</groupId>
4418
<artifactId>commons-math3</artifactId>
@@ -50,38 +24,12 @@
5024
<version>${junit.platform.version}</version>
5125
<scope>test</scope>
5226
</dependency>
53-
<dependency>
54-
<groupId>khttp</groupId>
55-
<artifactId>khttp</artifactId>
56-
<version>${khttp.version}</version>
57-
</dependency>
58-
<dependency>
59-
<groupId>com.nhaarman</groupId>
60-
<artifactId>mockito-kotlin</artifactId>
61-
<version>${mockito-kotlin.version}</version>
62-
<scope>test</scope>
63-
</dependency>
64-
<dependency>
65-
<groupId>com.github.salomonbrys.kodein</groupId>
66-
<artifactId>kodein</artifactId>
67-
<version>${kodein.version}</version>
68-
</dependency>
6927
<dependency>
7028
<groupId>org.assertj</groupId>
7129
<artifactId>assertj-core</artifactId>
7230
<version>${assertj.version}</version>
7331
<scope>test</scope>
7432
</dependency>
75-
<dependency>
76-
<groupId>com.beust</groupId>
77-
<artifactId>klaxon</artifactId>
78-
<version>${klaxon.version}</version>
79-
</dependency>
80-
<dependency>
81-
<groupId>org.jetbrains.exposed</groupId>
82-
<artifactId>exposed</artifactId>
83-
<version>${exposed.version}</version>
84-
</dependency>
8533
<dependency>
8634
<groupId>com.h2database</groupId>
8735
<artifactId>h2</artifactId>
@@ -110,16 +58,11 @@
11058
</dependencies>
11159

11260
<properties>
113-
<mockito-kotlin.version>1.5.0</mockito-kotlin.version>
114-
<kodein.version>4.1.0</kodein.version>
115-
<klaxon.version>3.0.4</klaxon.version>
116-
<khttp.version>0.1.0</khttp.version>
11761
<commons-math3.version>3.6.1</commons-math3.version>
11862
<junit.platform.version>1.1.1</junit.platform.version>
11963
<junit.vintage.version>5.2.0</junit.vintage.version>
12064
<assertj.version>3.10.0</assertj.version>
12165
<h2database.version>1.4.197</h2database.version>
122-
<exposed.version>0.10.4</exposed.version>
12366
<fuel.version>1.15.0</fuel.version>
12467
</properties>
12568

‎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+
- [Kotlin with Ktor](http://www.baeldung.com/kotlin-ktor)
9+
- [Idiomatic Logging in Kotlin](http://www.baeldung.com/kotlin-logging)
10+
- [Guide to the Kotlin Exposed Framework](https://www.baeldung.com/kotlin-exposed-persistence)

‎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

0 commit comments

Comments
 (0)