Fix kotlin pom.xml
This commit is contained in:
parent
68281fa705
commit
19afd94177
@ -28,9 +28,8 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory>
|
||||
<testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>kotlin-maven-plugin</artifactId>
|
||||
@ -38,29 +37,51 @@
|
||||
<version>${kotlin-maven-plugin.version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<configuration>
|
||||
<sourceDirs>
|
||||
<source>src/main/java</source>
|
||||
<source>src/main/kotlin</source>
|
||||
</sourceDirs>
|
||||
</configuration>
|
||||
<id>compile</id>
|
||||
<goals>
|
||||
<goal>compile</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
|
||||
<execution>
|
||||
<goals> <goal>compile</goal> </goals>
|
||||
<configuration>
|
||||
<sourceDirs>
|
||||
<source>src/test/java</source>
|
||||
<source>src/test/kotlin</source>
|
||||
<sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
|
||||
<sourceDir>${project.basedir}/src/main/java</sourceDir>
|
||||
</sourceDirs>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>test-compile</id>
|
||||
<goals>
|
||||
<goal>test-compile</goal>
|
||||
</goals>
|
||||
<goals> <goal>test-compile</goal> </goals>
|
||||
<configuration>
|
||||
<sourceDirs>
|
||||
<sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
|
||||
<sourceDir>${project.basedir}/src/test/java</sourceDir>
|
||||
</sourceDirs>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.5.1</version>
|
||||
<executions>
|
||||
<!-- Replacing default-compile as it is treated specially by maven -->
|
||||
<execution>
|
||||
<id>default-compile</id>
|
||||
<phase>none</phase>
|
||||
</execution>
|
||||
<!-- Replacing default-testCompile as it is treated specially by maven -->
|
||||
<execution>
|
||||
<id>default-testCompile</id>
|
||||
<phase>none</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>java-compile</id>
|
||||
<phase>compile</phase>
|
||||
<goals> <goal>compile</goal> </goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>java-test-compile</id>
|
||||
<phase>test-compile</phase>
|
||||
<goals> <goal>testCompile</goal> </goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
@ -69,9 +90,10 @@
|
||||
|
||||
<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>
|
||||
<kotlin-maven-plugin.version>1.0.6</kotlin-maven-plugin.version>
|
||||
<kotlin-test-junit.version>1.0.6</kotlin-test-junit.version>
|
||||
<kotlin-stdlib.version>1.0.6</kotlin-stdlib.version>
|
||||
<kotlin-maven-plugin.version>1.0.6</kotlin-maven-plugin.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
@ -6,12 +6,13 @@ import kotlin.test.assertEquals
|
||||
|
||||
|
||||
class KotlinScalaInteroperabilityTest {
|
||||
|
||||
@Test
|
||||
fun givenLowercaseString_whenExecuteMethodFromJavaStringUtils_shouldReturnStringUppercase() {
|
||||
//given
|
||||
val name = "tom"
|
||||
|
||||
//when
|
||||
//whene
|
||||
val res = StringUtils.toUpperCase(name)
|
||||
|
||||
//then
|
||||
|
Loading…
x
Reference in New Issue
Block a user