Skip to content

Commit 9512edb

Browse files
author
Tomasz Lelek
committed
BAEL-586 moved code to com.baeldung.kotlin package, use version properties in pom.xml
1 parent fde3950 commit 9512edb

7 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎kotlin/pom.xml‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
<dependency>
1313
<groupId>org.jetbrains.kotlin</groupId>
1414
<artifactId>kotlin-stdlib</artifactId>
15-
<version>1.0.4</version>
15+
<version>${kotlin-stdlib.version}</version>
1616
</dependency>
1717
<dependency>
1818
<groupId>org.jetbrains.kotlin</groupId>
1919
<artifactId>kotlin-test-junit</artifactId>
20-
<version>1.0.4</version>
20+
<version>${kotlin-test-junit.version}</version>
2121
<scope>test</scope>
2222
</dependency>
2323
<dependency>
2424
<groupId>junit</groupId>
2525
<artifactId>junit</artifactId>
26-
<version>4.12</version>
26+
<version>${junit.version}</version>
2727
<scope>test</scope>
2828
</dependency>
2929
</dependencies>
@@ -35,7 +35,7 @@
3535
<plugin>
3636
<artifactId>kotlin-maven-plugin</artifactId>
3737
<groupId>org.jetbrains.kotlin</groupId>
38-
<version>1.0.4</version>
38+
<version>${kotlin-maven-plugin.version}</version>
3939
<executions>
4040
<execution>
4141
<id>compile</id>
@@ -55,4 +55,11 @@
5555
</plugins>
5656
</build>
5757

58+
<properties>
59+
<junit.version>4.12</junit.version>
60+
<kotlin-test-junit.version>1.0.4</kotlin-test-junit.version>
61+
<kotlin-stdlib.version>1.0.4</kotlin-stdlib.version>
62+
<kotlin-maven-plugin.version>1.0.4</kotlin-maven-plugin.version>
63+
</properties>
64+
5865
</project>

kotlin/src/main/kotlin/com/baeldung/Example1.kt renamed to kotlin/src/main/kotlin/com/baeldung/kotlin/Example1.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung
1+
package com.baeldung.kotlin
22

33
fun main(args: Array<String>){
44
println("hello word")

kotlin/src/main/kotlin/com/baeldung/Item.kt renamed to kotlin/src/main/kotlin/com/baeldung/kotlin/Item.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung
1+
package com.baeldung.kotlin
22

33
open class Item(val id: String, val name: String = "unknown_name") {
44
open fun getIdOfItem(): String {

kotlin/src/main/kotlin/com/baeldung/ItemService.kt renamed to kotlin/src/main/kotlin/com/baeldung/kotlin/ItemService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung
1+
package com.baeldung.kotlin
22

33
import java.util.*
44

kotlin/src/main/kotlin/com/baeldung/ListExtension.kt renamed to kotlin/src/main/kotlin/com/baeldung/kotlin/ListExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung
1+
package com.baeldung.kotlin
22

33
import java.util.concurrent.ThreadLocalRandom
44

kotlin/src/test/kotlin/com/baeldung/ItemServiceTest.kt renamed to kotlin/src/test/kotlin/com/baeldung/kotlin/ItemServiceTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung
1+
package com.baeldung.kotlin
22

33
import org.junit.Test
44
import kotlin.test.assertNotNull

kotlin/src/test/kotlin/com/baeldung/ListExtensionTest.kt renamed to kotlin/src/test/kotlin/com/baeldung/kotlin/ListExtensionTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
package com.baeldung
1+
package com.baeldung.kotlin
22

3+
import com.baeldung.kotlin.ListExtension
34
import org.junit.Test
45
import kotlin.test.assertTrue
56

0 commit comments

Comments
 (0)