Skip to content

Commit

Permalink
opprette basic felles module
Browse files Browse the repository at this point in the history
  • Loading branch information
alpet committed Sep 21, 2023
1 parent 6943328 commit 5752897
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cpa-repo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
kotlin("jvm") version "1.9.0"
application
id("io.ktor.plugin") version "2.3.4"
kotlin("plugin.serialization") version "1.9.0"
}

tasks {
Expand Down Expand Up @@ -47,6 +48,7 @@ dependencies {
implementation("org.jetbrains.exposed:exposed-jdbc:0.43.0")
implementation("org.jetbrains.exposed:exposed-java-time:0.43.0")
implementation("ch.qos.logback:logback-classic:1.4.11")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.4")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1")

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package no.nav.emottak.cpa.model

import kotlinx.serialization.Serializable


@Serializable
data class Header(
val messageId: String,
val conversationId: String,
val cpaId: String,
val to: Party,
val from: Party,
val service: String,
val action: String
)

@Serializable
data class Party(
val herID: String,
val role: String
)
9 changes: 9 additions & 0 deletions payload-processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ plugins {

repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/navikt/ebxml-protokoll")
credentials {
username = "x-access-token"
password = githubPassword
}
}
}


Expand All @@ -30,6 +38,7 @@ tasks {
}

dependencies {
implementation(project(":felles"))
implementation("io.ktor:ktor-server-core:2.3.4")
implementation("io.ktor:ktor-server-netty:2.3.4")
implementation("io.ktor:ktor-server-call-logging-jvm:2.3.4")
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* in the user manual at https://docs.gradle.org/8.1.1/userguide/multi_project_builds.html
*/
rootProject.name = "ebxml-processor"
include("async-recievers","cpa-repo","ebms-provider", "payload-processor")
include("felles","async-recievers","cpa-repo","ebms-provider", "payload-processor")

0 comments on commit 5752897

Please sign in to comment.