Skip to content

Commit

Permalink
Sarthak: Changed version from RELEASE to specific version and integra…
Browse files Browse the repository at this point in the history
…ted jacoco
  • Loading branch information
msarthak32 committed Nov 7, 2017
1 parent 3beaec7 commit 3ecf134
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 7 deletions.
45 changes: 40 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<kotlin.version>1.1.51</kotlin.version>
<kotlin.test.version>2.0.5</kotlin.test.version>
<version.jacoco>0.7.6.201602180812</version.jacoco>
</properties>


<dependencies>
<dependency>
<groupId>io.projectreactor</groupId>
Expand All @@ -23,7 +27,7 @@
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>RELEASE</version>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>me.tongfei</groupId>
Expand All @@ -32,14 +36,14 @@
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-test-junit</artifactId>
<version>RELEASE</version>
<artifactId>kotlin-test</artifactId>
<version>${kotlin.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.kotlintest</groupId>
<artifactId>kotlintest</artifactId>
<version>RELEASE</version>
<version>${kotlin.test.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -64,7 +68,7 @@
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>RELEASE</version>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
Expand All @@ -82,6 +86,37 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${version.jacoco}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<dataFile>target/jacoco.exec</dataFile>
<outputDirectory>target/jacoco</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/dataanon/Field.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package com.github.dataanon

data class Field<T: Any>(val name: String, val oldValue: T, var newValue: T = oldValue)
class Field<T: Any>(val name: String, val oldValue: T, var newValue: T = oldValue)
2 changes: 1 addition & 1 deletion src/main/kotlin/com/github/dataanon/Record.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.dataanon

data class Record(private val fields: List<Field<Any>>, val rowNum: Int) {
class Record(private val fields: List<Field<Any>>, val rowNum: Int) {

fun find(name: String): Field<Any> = fields.first {name.equals(it.name, true)}
}

0 comments on commit 3ecf134

Please sign in to comment.