BAEL-586 moved code to com.baeldung.kotlin package, use version properties in pom.xml

This commit is contained in:
Tomasz Lelek 2017-01-17 09:54:51 +01:00
parent fde39503a3
commit 9512edb667
7 changed files with 18 additions and 10 deletions

View File

@ -12,18 +12,18 @@
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>1.0.4</version>
<version>${kotlin-stdlib.version}</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>1.0.4</version>
<version>${kotlin-test-junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
@ -35,7 +35,7 @@
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>1.0.4</version>
<version>${kotlin-maven-plugin.version}</version>
<executions>
<execution>
<id>compile</id>
@ -55,4 +55,11 @@
</plugins>
</build>
<properties>
<junit.version>4.12</junit.version>
<kotlin-test-junit.version>1.0.4</kotlin-test-junit.version>
<kotlin-stdlib.version>1.0.4</kotlin-stdlib.version>
<kotlin-maven-plugin.version>1.0.4</kotlin-maven-plugin.version>
</properties>
</project>

View File

@ -1,4 +1,4 @@
package com.baeldung
package com.baeldung.kotlin
fun main(args: Array<String>){
println("hello word")

View File

@ -1,4 +1,4 @@
package com.baeldung
package com.baeldung.kotlin
open class Item(val id: String, val name: String = "unknown_name") {
open fun getIdOfItem(): String {

View File

@ -1,4 +1,4 @@
package com.baeldung
package com.baeldung.kotlin
import java.util.*

View File

@ -1,4 +1,4 @@
package com.baeldung
package com.baeldung.kotlin
import java.util.concurrent.ThreadLocalRandom

View File

@ -1,4 +1,4 @@
package com.baeldung
package com.baeldung.kotlin
import org.junit.Test
import kotlin.test.assertNotNull

View File

@ -1,5 +1,6 @@
package com.baeldung
package com.baeldung.kotlin
import com.baeldung.kotlin.ListExtension
import org.junit.Test
import kotlin.test.assertTrue