Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build
on:
push:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main

- name: Setup java 8
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
cache: 'gradle'

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1.0.4

- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Build with Gradle
run: ./gradlew build
39 changes: 39 additions & 0 deletions .github/workflows/publish_to_reposolite.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to Reposilite

on:
release:
types: [ published ]

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@main

- name: Set version
run: |
echo "RELEASE_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed "s/^v//")" >> $GITHUB_ENV
echo "refs: ${{ github.ref }}"

- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v2

- name: Gradle Setup
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: wrapper

- name: Gradle build
run: ./gradlew clean build publish -Pversion=${{ env.RELEASE_VERSION }}

env:
REPOSILITE_USERNAME: ${{ secrets.REPOSILITE_USERNAME }}
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
31 changes: 0 additions & 31 deletions Jenkinsfile

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ build.gradle
```groovy
repositories {
maven {
url "http://dl.bintray.com/fint/maven"
url "http://repo.fintlabs.no/releases"
}
}

compile('no.fint:fint-event-model:3.0.0')
implementation 'no.fintlabs:fint-event-model:4.0.0'
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ jacocoTestReport {
}
}

apply from: 'https://raw.githubusercontent.com/FINTLabs/fint-buildscripts/master/reposilite.gradle'
apply from: 'https://raw.githubusercontent.com/FINTLabs/fint-buildscripts/master/reposilite.ga.gradle'
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package no.fint.event.model;
package no.fintlabs.event.model;

import no.fintlabs.event.model.health.Health;

import java.util.Arrays;
import java.util.List;

public enum DefaultActions {
/**
* Tells the adapter to check communication with application and that the adapter can perform necessary actions {@link no.fint.event.model.health.Health}
* Tells the adapter to check communication with application and that the adapter can perform necessary actions {@link Health}
*/
HEALTH,
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

public enum HeaderConstants {
;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

public enum Operation {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

/**
* The response status indicates the result of the event from the adapter.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model;
package no.fintlabs.event.model;

/**
* The Status Enum indicates what step the {@link Event} is at. The steps can be:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model.health;
package no.fintlabs.event.model.health;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model.health;
package no.fintlabs.event.model.health;

public enum HealthStatus {
/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model
package no.fintlabs.event.model

import spock.lang.Specification

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model
package no.fintlabs.event.model

import com.fasterxml.jackson.databind.ObjectMapper
import groovy.json.JsonSlurper
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package no.fint.event.model
package no.fintlabs.event.model

import com.fasterxml.jackson.core.JsonProcessingException
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import no.fint.event.model.testutils.TestDto
import no.fintlabs.event.model.testutils.TestDto
import spock.lang.Specification


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model
package no.fintlabs.event.model

import spock.lang.Specification

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model.health
package no.fintlabs.event.model.health

import spock.lang.Specification

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package no.fint.event.model.testutils;
package no.fintlabs.event.model.testutils;

public class TestDto {
private String value;
Expand Down