Skip to content

Commit

Permalink
endre module navn til ebms-provider og legg til ebms-db
Browse files Browse the repository at this point in the history
  • Loading branch information
alpet committed Sep 14, 2023
1 parent 10c1eac commit 7400657
Show file tree
Hide file tree
Showing 21 changed files with 16 additions and 72 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Build and push ebms-provider Docker image"
run: "docker build processor --pull --tag ${IMAGE_EBMS} -f Dockerfile && docker push ${IMAGE_EBMS}"
run: "docker build ebms-provider --pull --tag ${IMAGE_EBMS} -f Dockerfile && docker push ${IMAGE_EBMS}"
- name: "Build and push cpa-repo Docker image"
run: "docker build cpa-repo --pull --tag ${IMAGE_CPA} -f Dockerfile && docker push ${IMAGE_CPA}"
- name: "Build and push payload-processor Docker image"
Expand All @@ -63,7 +63,7 @@ jobs:
env:
APIKEY: "${{ secrets.NAIS_DEPLOY_APIKEY }}"
CLUSTER: "dev-gcp"
RESOURCE: ".nais/processor-dev.yaml"
RESOURCE: ".nais/ebms-provider-dev.yaml"
IMAGE: ${{env.IMAGE_EBMS}}
deploy-cpa-repo:
name: "Deploy cpa-repo to dev"
Expand All @@ -90,30 +90,4 @@ jobs:
APIKEY: "${{ secrets.NAIS_DEPLOY_APIKEY }}"
CLUSTER: "dev-gcp"
RESOURCE: ".nais/payload-processor-dev.yaml"
IMAGE: ${{env.IMAGE_PAYLOAD}}
# "deployAppToDev":
# name: "Deploy app to dev"
# needs: "build"
# runs-on: "ubuntu-20.04"
# steps:
# - uses: "actions/checkout@v3"
# - name: "Deploy to DEV"
# uses: "nais/deploy/actions/deploy@v1"
# env:
# "APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}"
# "CLUSTER": "dev-gcp"
# "RESOURCE": ".nais/nais.yaml"
# "VARS": ".nais/dev.yaml"
# "deployAppToProd":
# name: "Deploy app to prod"
# needs: "deployAppToDev"
# runs-on: "ubuntu-20.04"
# steps:
# - uses: "actions/checkout@v3"
# - name: "Deploy to PROD"
# uses: "nais/deploy/actions/deploy@v1"
# env:
# "APIKEY": "${{ secrets.NAIS_DEPLOY_APIKEY }}"
# "CLUSTER": "prod-gcp"
# "RESOURCE": ".nais/nais.yaml"
# "VARS": ".nais/prod.yaml"
IMAGE: ${{env.IMAGE_PAYLOAD}}
22 changes: 0 additions & 22 deletions .nais/processor-dev.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ plugins {
}

tasks {

shadowJar {
archiveFileName.set("app.jar")
}

}

repositories {
Expand Down Expand Up @@ -46,5 +44,5 @@ dependencies {
}

application {
mainClass.set("ebxml.processor.app.AppKt")
mainClass.set("no.nav.emottak.ebms.AppKt")
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package ebxml.processor.app
package no.nav.emottak.ebms

import io.ktor.http.*
import io.ktor.http.content.*
Expand All @@ -13,8 +13,8 @@ import io.ktor.server.response.*
import io.ktor.server.routing.*
import no.nav.emottak.ebms.model.EbMSAttachment
import no.nav.emottak.ebms.model.EbMSDocument
import no.nav.emottak.processing.EbmsMessageProcessor
import no.nav.emottak.xml.EbmsMessageBuilder
import no.nav.emottak.ebms.processing.EbmsMessageProcessor
import no.nav.emottak.ebms.xml.EbmsMessageBuilder
import kotlin.io.encoding.ExperimentalEncodingApi

fun main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This Kotlin source file was generated by the Gradle 'init' task.
*/
package ebxml.processor.app
package no.nav.emottak.ebms

class MessageUtils {
companion object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package no.nav.emottak.processing
package no.nav.emottak.ebms.processing

import no.nav.emottak.ebms.model.EbMSDocument
import no.nav.emottak.xml.EbmsMessageBuilder
import no.nav.emottak.ebms.xml.EbmsMessageBuilder

class EbmsMessageProcessor {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.emottak.xml
package no.nav.emottak.ebms.xml

import no.nav.emottak.ebms.model.EbMSDocument
import org.xmlsoap.schemas.soap.envelope.Envelope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.nav.emottak.xml
package no.nav.emottak.ebms.xml

import java.io.StringWriter
import javax.xml.bind.JAXBContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* This Kotlin source file was generated by the Gradle "init" task.
*/
package ebxml.processor.app
package no.nav.emottak.ebms

import no.nav.emottak.xml.marshal
import no.nav.emottak.xml.unmarshal
import no.nav.emottak.ebms.xml.marshal
import no.nav.emottak.ebms.xml.unmarshal
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
Expand Down
8 changes: 1 addition & 7 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,5 @@
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/8.1.1/userguide/multi_project_builds.html
*/

plugins {
// Apply the foojay-resolver plugin to allow automatic download of JDKs
id("org.gradle.toolchains.foojay-resolver-convention") version "0.4.0"
}

rootProject.name = "ebxml-processor"
include("async-recievers","cpa-repo","processor", "payload-processor")
include("async-recievers","cpa-repo","ebms-provider", "payload-processor")

0 comments on commit 7400657

Please sign in to comment.