Skip to content

Commit

Permalink
Updated dependencies.
Browse files Browse the repository at this point in the history
Fixed jakarta import prefix.
  • Loading branch information
oyvind-wedoe committed Aug 1, 2023
1 parent 169518d commit 7a9cc13
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 30 deletions.
15 changes: 10 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

val jakartaPersistenceApiVersion = "3.1.0"
val junitJupiterVersion = "5.10.0"
val assertjCoreVersion = "3.24.2"


plugins {
kotlin("jvm") version "1.8.0"
kotlin("jvm") version "1.9.0"
id("maven-publish")
id("java-library")
}

group = "no.nav.klage"
version = properties["version"] ?: "local-build"
java.sourceCompatibility = JavaVersion.VERSION_11
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
}

dependencies {
compileOnly("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("jakarta.persistence:jakarta.persistence-api:2.2.3")
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
testImplementation("org.assertj:assertj-core:3.24.1")
implementation("jakarta.persistence:jakarta.persistence-api:$jakartaPersistenceApiVersion")
testImplementation("org.junit.jupiter:junit-jupiter:$junitJupiterVersion")
testImplementation("org.assertj:assertj-core:$assertjCoreVersion")
}

tasks.withType<KotlinCompile> {
Expand Down
5 changes: 2 additions & 3 deletions src/main/kotlin/no/nav/klage/kodeverk/Brevmottakertype.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package no.nav.klage.kodeverk


import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Brevmottakertype(override val id: String, override val navn: String, override val beskrivelse: String) :
Kode {
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/DokumentType.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter


enum class DokumentType(
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/Fagsystem.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Fagsystem(
override val id: String,
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/MedunderskriverFlyt.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class MedunderskriverFlyt(override val id: String, override val navn: String, override val beskrivelse: String) :
Kode {
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/PartIdType.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class PartIdType(override val id: String, override val navn: String, override val beskrivelse: String) : Kode {
PERSON("PERSON", "Person", "Person"),
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/Source.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Source(override val id: String, override val navn: String, override val beskrivelse: String) : Kode {
KAKA("1", "KAKA", "KAKA"),
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/Tema.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Tema(override val id: String, override val navn: String, override val beskrivelse: String) : Kode {
AAP("1", "AAP", "Arbeidsavklaringspenger"),
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/Type.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Type(override val id: String, override val navn: String, override val beskrivelse: String) : Kode {

Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/Utfall.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Utfall(override val id: String, override val navn: String, override val beskrivelse: String) : Kode {
TRUKKET("1", "Trukket", "Trukket"),
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/Ytelse.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Ytelse(override val id: String, override val navn: String, override val beskrivelse: String) : Kode {
OMS_OMP("1", "Omsorgspenger", "Omsorgspenger"),
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/no/nav/klage/kodeverk/hjemmel/Hjemmel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package no.nav.klage.kodeverk.hjemmel

import no.nav.klage.kodeverk.Tema
import no.nav.klage.kodeverk.Ytelse
import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

/**
* Used for innsending, search and innstillinger
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.klage.kodeverk.hjemmel

import javax.persistence.AttributeConverter
import javax.persistence.Converter
import jakarta.persistence.AttributeConverter
import jakarta.persistence.Converter

enum class Registreringshjemmel(
val id: String,
Expand Down

0 comments on commit 7a9cc13

Please sign in to comment.