diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 00000000..7e8dc29a
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,48 @@
+# This is a basic workflow to help you get started with Actions
+
+name: CI
+
+# Controls when the action will run.
+on:
+ # Triggers the workflow on push or pull request events but only for the master branch
+ push:
+ branches: [ master ]
+ pull_request:
+ branches: [ master ]
+
+ # Allows you to run this workflow manually from the Actions tab
+ workflow_dispatch:
+
+# A workflow run is made up of one or more jobs that can run sequentially or in parallel
+jobs:
+ # This workflow contains a single job called "build"
+ build:
+ # The type of runner that the job will run on
+ runs-on: ubuntu-latest
+
+ # Steps represent a sequence of tasks that will be executed as part of the job
+ steps:
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8.0.232
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - uses: s4u/maven-settings-action@v2.2.0
+ with:
+ servers: |
+ [{
+ "id": "github-packages",
+ "username": "${{ secrets.RELEASE_USERNAME }}",
+ "password": "${{ secrets.RELEASE_TOKEN }}"
+ }]
+ githubServer: false
+ - name: Build with Maven
+ run: mvn -P 'github-packages' -B install
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..f5e90918
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,38 @@
+name: Publish package to GitHub Packages
+on:
+ release:
+ types: [created]
+ push:
+ branches: [master]
+jobs:
+ publish:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions/setup-java@v1
+ with:
+ java-version: 8.0.232
+ server-id: github-packages # Value of the distributionManagement/repository/id field of the pom.xml
+ server-username: pmanko
+ server-password: ${{ secrets.TOKEN }} # env variable for token in deploy
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - uses: s4u/maven-settings-action@v2.2.0
+ with:
+ servers: |
+ [{
+ "id": "github-packages",
+ "username": "${{ secrets.RELEASE_USERNAME }}",
+ "password": "${{ secrets.RELEASE_TOKEN }}"
+ }]
+ githubServer: false
+ - name: Build
+ run: mvn -P github-packages -DskipTests -Dfindbugs.skip=true -Dpmd.skip=true -Dcpd.skip=true -B package
+ - name: Publish package
+ run: mvn -P github-packages -DskipTests -Dfindbugs.skip=true -Dpmd.skip=true -Dcpd.skip=true -B deploy
+ env:
+ GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index e9b981ef..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-language: java
-jdk:
- - oraclejdk8
\ No newline at end of file
diff --git a/omod/pom.xml b/omod/pom.xml
index 8806a080..4b605067 100644
--- a/omod/pom.xml
+++ b/omod/pom.xml
@@ -73,13 +73,6 @@
${m2SysVersion}
provided
-
- org.openmrs.module
- m2sys-biometrics
- ${m2SysVersion}
- provided
-
-
org.openmrs.module
xds-sender-api
@@ -286,6 +279,36 @@
+
+ github-packages
+
+
+
+ maven-deploy-plugin
+
+
+
+ deploy-file
+ deploy
+
+ deploy-file
+
+
+ https://maven.pkg.github.com/isanteplus/isanteplus-packages
+ target/${project.parent.artifactId}-${project.version}.omod
+ github-packages
+ omod
+ false
+ ${project.parent.artifactId}
+ ${project.version}
+ ${groupId}
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index f592de24..9106aa83 100644
--- a/pom.xml
+++ b/pom.xml
@@ -36,25 +36,25 @@
1.9.9
- 3.13.0-SNAPSHOT
+ 3.13.0
2.9
3.0.5.RELEASE
4.4.0
- 2.4.0-SNAPSHOT
+ 2.4.0
1.18
1.2
2.5.0
- 1.7.2-SNAPSHOT
+ 1.7.2
0.10.4
2.9
3.3.0
- 1.9.0-SNAPSHOT
- 1.11.1
+ 1.9.0
+ 1.19.1
0.2.12
2.5
1.8.7
UTF-8
- 1.0.0
+ 1.0.1
1.0.0
@@ -355,7 +355,7 @@
openmrs-repo
OpenMRS Nexus Repository
- http://mavenrepo.openmrs.org/nexus/content/repositories/public
+ https://mavenrepo.openmrs.org/nexus/content/repositories/public
@@ -363,7 +363,7 @@
openmrs-repo
OpenMRS Nexus Repository
- http://mavenrepo.openmrs.org/nexus/content/repositories/public
+ https://mavenrepo.openmrs.org/nexus/content/repositories/public
false
@@ -374,13 +374,65 @@
openmrs-repo-modules
OpenMRS Modules
- http://mavenrepo.openmrs.org/nexus/content/repositories/modules
+ https://mavenrepo.openmrs.org/nexus/content/repositories/modules
openmrs-repo-snapshots
OpenMRS Snapshots
- http://mavenrepo.openmrs.org/nexus/content/repositories/snapshots
+ https://mavenrepo.openmrs.org/nexus/content/repositories/snapshots
-
+
+
+
+ github-packages
+
+
+
+ github-packages
+ Github iSantePlus Packages
+ https://maven.pkg.github.com/isanteplus/isanteplus-packages
+ false
+
+
+ github-packages
+ Github iSantePlus Packages
+ https://maven.pkg.github.com/isanteplus/isanteplus-packages
+ true
+
+
+
+
+
+ github-packages
+ Github iSantePlus Packages
+ https://maven.pkg.github.com/isanteplus/isanteplus-packages
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+
+ none
+
+
+
+
+ org.apache.maven.plugins
+ maven-pmd-plugin
+
+
+ validate
+ none
+
+
+
+
+
+
+
\ No newline at end of file