Skip to content

Commit

Permalink
sammenstiller versjoner
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Nov 15, 2024
1 parent 8bf080c commit 939192b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 4 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
val junitJupiterVersion = "5.11.3"
val jacksonVersion = "2.18.1"
val kafkaVersion = "3.9.0"
val logbackClassicVersion = "1.5.12"
val logbackEncoderVersion = "8.0"

group = "com.github.navikt"
version = properties["version"] ?: "local-build"
Expand All @@ -11,22 +13,15 @@ plugins {
id("maven-publish")
}

buildscript {
dependencies {
classpath("org.junit.platform:junit-platform-gradle-plugin:1.2.0")
}
}

repositories {
mavenCentral()
maven("https://jitpack.io")
}

dependencies {
api("org.apache.kafka:kafka-clients:$kafkaVersion")

api("ch.qos.logback:logback-classic:1.5.12")
api("net.logstash.logback:logstash-logback-encoder:8.0") {
api("ch.qos.logback:logback-classic:$logbackClassicVersion")
api("net.logstash.logback:logstash-logback-encoder:$logbackEncoderVersion") {
exclude("com.fasterxml.jackson.core")
}

Expand Down
2 changes: 0 additions & 2 deletions src/main/kotlin/no/nav/rapids_and_rivers/cli/JsonRiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package no.nav.rapids_and_rivers.cli

import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.MapperFeature
import com.fasterxml.jackson.databind.SerializationFeature
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
Expand All @@ -15,7 +14,6 @@ class JsonRiver(rapids: RapidsCliApplication) : MessageListener {
private val validations = mutableListOf<JsonValidation>()
private val mapper = jacksonObjectMapper()
.registerModule(JavaTimeModule())
.enable(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY)
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)

init {
Expand Down

0 comments on commit 939192b

Please sign in to comment.