Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOSIP-32507] Migrated Pre-reg services from Java 11 to Java 21 #671

Open
wants to merge 234 commits into
base: develop-java21
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
234 commits
Select commit Hold shift + click to select a range
2d6ee3e
Added unit tests
mayuradesh Dec 31, 2021
89999b6
Updated testcases to include in Coverage
mayuradesh Dec 31, 2021
86d1bcc
Add unit tests
mayuradesh Dec 31, 2021
5ce07f7
MOSIP-19368 Change regcentrid column name
rambhatt1591 Jan 4, 2022
5b8cd5f
added missing unit tests
mayuradesh Jan 4, 2022
5655d3a
[MOSIP-17557] Added New Test cases
aihamh Jan 4, 2022
ef5438d
updated test cases
aihamh Jan 4, 2022
d96ee58
Added missing tests
mayuradesh Jan 5, 2022
a118398
trying to include the controllers in coverage
mayuradesh Jan 5, 2022
ebaed4e
MOSIP: 15286 Fixed openapi.json generation for pre-reg application se…
kameshsr Jan 4, 2022
636c129
MOSIP: 15286 Changed openapi.json name to application-service name.
kameshsr Jan 4, 2022
79fb0a6
Updated gpg signing keys.
Jan 8, 2022
5e2b984
MOSIP: 15286 Changed openapi.json name to application-service name.
kameshsr Jan 10, 2022
26bc57d
ignoring interface from coverage
mayuradesh Jan 10, 2022
1785199
removed unused properties from test
mayuradesh Jan 10, 2022
6d87b18
MOSIP: 15286 Changed openapi.json name to application-service name.
kameshsr Jan 11, 2022
e995fd8
Addressed all 6 Security Hotspots
mayuradesh Jan 11, 2022
c8871a7
added missing anonymous_profile in sql
mayuradesh Jan 12, 2022
b042133
Fixed coding bugs as per Sonar Cloud report
mayuradesh Jan 12, 2022
cf32bba
removed temp classpath
mayuradesh Jan 12, 2022
113c55e
Fixed coding bugs as per Sonar Cloud report
mayuradesh Jan 12, 2022
1a59439
Fixed coding bugs as per Sonar Cloud report
mayuradesh Jan 12, 2022
bb92ec3
Fixed coding bugs as per Sonar Cloud report
mayuradesh Jan 12, 2022
53f7564
Resolving issues by SonarCube
mayuradesh Jan 12, 2022
f3a5895
Resolving all issues by SonarCube AppointmentUtil
mayuradesh Jan 12, 2022
85ca16a
Resolving issues by SonarCube
mayuradesh Jan 12, 2022
192acaf
Resolved issue
mayuradesh Jan 12, 2022
3856576
Fixed code bugs as per SonarCloud
mayuradesh Jan 13, 2022
143c192
Included null checks
mayuradesh Jan 13, 2022
86c65ba
Fixed code bugs as per SonarCloud
mayuradesh Jan 13, 2022
7af5774
Fixed bugs as per SonarCloud
mayuradesh Jan 17, 2022
c4c80b0
Fixed bugs as per SonarCloud
mayuradesh Jan 17, 2022
2c4031e
Fixed bugs as per SonarCloud
mayuradesh Jan 18, 2022
5c192ea
Removed CrossOrigin annotations
mayuradesh Jan 25, 2022
0949d57
MOSIP-19791: Fix swagger JSON extraction for pre-reg application serv…
kameshsr Jan 27, 2022
8e28f3a
[MOSIP-19885] removed virusscanner dependency
ckm007 Jan 31, 2022
3076969
[MOSIP-19755] added change for virusscanner dynamic URL
ckm007 Jan 31, 2022
ccd347e
Merged dev with release-1.2.0 branch
mayuradesh Feb 11, 2022
93ade14
updated branch name
mayuradesh Feb 14, 2022
f1805b5
updated testcase
mayuradesh Feb 14, 2022
c6d9741
Removed Hardcoded email Ids.
Mahesh-Binayak Nov 18, 2021
650a051
Revert "Develop"
mayuradesh Feb 14, 2022
7d8aaf4
changed pom version to 1.2.0.1-SNAPSHOT
mayuradesh Feb 18, 2022
7ea7d9e
changed keymanager version to 1.2.0-SNAPSHOT
mayuradesh Feb 18, 2022
e6e6f56
MOSIP-19942,MOSIP-20359,MOSIP-20383 fixed
mayuradesh Mar 2, 2022
e606592
Updated userValidation with Role Check
mayuradesh Mar 2, 2022
e28eb7f
Updated Role Check
mayuradesh Mar 2, 2022
badc6cd
MOSIP-20359 added userValidation
mayuradesh Mar 3, 2022
ed19d1b
[MOSIP-18192] Added new Template for Cancel Appointment Email Subject
aihamh Mar 3, 2022
5a1bf95
MOSIP-20359 Added error handling
mayuradesh Mar 4, 2022
ca43a18
MOSIP-20359 updated err handling
mayuradesh Mar 4, 2022
37d1a9f
removed unused exception
mayuradesh Mar 4, 2022
07e9564
MOSIP-20249 code cleanup
mayuradesh Mar 7, 2022
28e0d85
MOSIP-20249 removed unused properties
mayuradesh Mar 7, 2022
583d526
[MOSIP-20435] Enhanced Sonar Coverage
aihamh Mar 7, 2022
8526c1c
Fixed sorting issue and corrected debug statement.
mahammedtaheer Mar 10, 2022
6a69585
[MOSIP-19036] Fixed adding lunch hours and moving lunch hours issue.
mahammedtaheer Mar 14, 2022
d8b3408
changed pom version to 1.2.1-SNAPAHOT
mayuradesh Mar 15, 2022
31eb2d1
[MOSIP-20468] Created Specific error code for consumed PRID, [MOSIP-2…
aihamh Mar 15, 2022
6645454
[MOSIP-20468] Created Specific error code for consumed PRID, [MOSIP-2…
aihamh Mar 15, 2022
0c5ea2b
[MOSIP-20435] Updated unit test for Demographic service
aihamh Mar 16, 2022
a3b2060
[MOSIP-20435] Fixed Sonar Coverage, Bug, Security hotspot
aihamh Mar 21, 2022
b74f071
updated bug
aihamh Mar 21, 2022
4374f44
updated bug
aihamh Mar 21, 2022
6a8efa7
Fixed Sonar Bugs
mayuradesh Mar 21, 2022
ed7547f
Fixed test cases
mayuradesh Mar 21, 2022
31f12c5
Fixed security hotspot in masterdata
mayuradesh Mar 21, 2022
d7afd5d
[MOSIP-20435] Added test case, fixed sonar bug
aihamh Mar 21, 2022
e5d0e01
[MOSIP-20435] Fixed Sonar Bugs in DemographicServiceUtil
aihamh Mar 22, 2022
655fa7d
[MOSIP-18641] Fixed Sonar Bugs in CryptoUtil, DatasyncServiceUtil class
aihamh Mar 23, 2022
d1a366c
[MOSIP-20435] Fixed Sonar Bugs
aihamh Mar 24, 2022
51497b1
updated
aihamh Mar 24, 2022
9bd0b0d
[MOSIP-18641] Fixed Sonar Bugs
aihamh Mar 25, 2022
2d78b8f
updated
aihamh Mar 28, 2022
3827844
Updated TemplateUtil class
aihamh Mar 28, 2022
0ff0c8b
updated TemplateUtil
aihamh Mar 28, 2022
12733ac
[MOSIP-18641] Fixed Sonar Bugs
aihamh Mar 29, 2022
89fe32b
updated OTPManager class
aihamh Mar 29, 2022
4794541
updated
aihamh Mar 29, 2022
73bbda7
Fixed Sonar Bugs
aihamh Mar 30, 2022
6f9a7d7
Fixed test cases
aihamh Mar 31, 2022
59026ae
Fixed Test case
aihamh Mar 31, 2022
c11d249
[MOSIP-18941] Fixed Sonar Bugs, Updated Unit test
aihamh Mar 31, 2022
42113a9
MOSIP-20958 - Issue fixed to handle changes in number of kiosk & chan…
mahammedtaheer Apr 1, 2022
9b33b2c
[MOSIP-20435] Updated Unit test for DemographicService class
aihamh Apr 11, 2022
ee8850e
MOSIP-21214 Added Script to insert record in mosip_prereg application…
kameshsr Apr 8, 2022
724a5a1
MOSIP-21214 Removed Limit.
kameshsr Apr 8, 2022
e48ea70
[MOSIP-20435] updated unit tests
aihamh Apr 12, 2022
e26581b
[MOSIP-21206] Added support for pre-reg app service also to be a lib
manojsp12 Apr 18, 2022
039a125
MOSIP-21409 : Changed timestamp to time without time zone.
kameshsr Apr 14, 2022
f7ba0f8
[MOSIP-21206] renamed application prop and removed plain txt pwds
manojsp12 Apr 19, 2022
dc7c949
Revert "[MOSIP-21206] renamed application prop and removed plain txt …
mayuradesh Apr 19, 2022
9e394a0
added miscellaneous purpose application api to book an appointment
May 19, 2022
2de62e6
created one more dto and added junit test cases
May 19, 2022
d621cef
fixed minor issue in build failure
May 19, 2022
4682719
MOSIP-22050 fixed issue
mayuradesh May 27, 2022
ead2250
MOSIP-22050 fix in progress
mayuradesh May 27, 2022
b3b4422
MOSIP-22357 fixed notf issue from batch job
mayuradesh Jun 7, 2022
1424888
[DSD-1039] Commented out slack notifications from push_trigger.yml.
gaganama May 25, 2022
5d863b6
[MOSIP-22224] Fixed Sonar Bug
aihamh Jun 13, 2022
4e6a523
[MOSIP-22224] Fixed Sonar Bug
aihamh Jun 20, 2022
92cfa9a
[MOSIP-22224] Updated Sonar Bug Fix
aihamh Jun 20, 2022
42d06ba
MOSIP-22161 added syncV2 api and tested with V3
mayuradesh Jun 15, 2022
c35538a
MOSIP-22161 added ToDate in queryparams
mayuradesh Jun 20, 2022
94f01ff
removed unused file
mayuradesh Jun 20, 2022
38d2c93
added application prop as per v3
mayuradesh Jun 20, 2022
2fb6772
Revert "added miscellaneous purpose application api to book an appoin…
mayuradesh Jun 23, 2022
ac2d04b
dummy PR to trigger rebuild
mayuradesh Jun 24, 2022
033a0d9
[MOSIP-22356] Created separate email notifications for all booking types
aihamh Jun 23, 2022
e91b7ab
Updated Error codes
aihamh Jun 23, 2022
c6c119a
Removed Null check for CancelAppointment Template
aihamh Jun 24, 2022
eaa5c2d
Revert "[MOSIP-22356] Created separate email notifications for all bo…
mayuradesh Jun 24, 2022
0ae5da3
[MOSIP-22356] Created separate email notifications for all booking types
aihamh Jun 27, 2022
acbc298
Removed Null check for applicationId
aihamh Jun 27, 2022
940aac4
Added Unit test cases
aihamh Jun 27, 2022
e43f32f
[MOSIP-22211] Resolved Booking an appointment without documents resul…
aihamh Jun 30, 2022
3d44fd8
Fixed Documents not removing from UI after deleted Bug
aihamh Jul 4, 2022
580b71c
Updated
aihamh Jul 4, 2022
45def62
Fixed Booking an appointment without documents results in an error
aihamh Jul 11, 2022
2894a34
DB release script re-structurisation changes
mayuradesh Aug 16, 2022
cff42bc
MOSIP-23623 Added revoke.sql
kameshsr Aug 19, 2022
0a23994
MOSIP-23854 corrected fk.sql
mayuradesh Sep 5, 2022
27f4754
MOSIP-22855 Removed .properties when using pre-reg application servic…
kameshsr Sep 6, 2022
c054a35
[MOSIP-15670] Resolved Invalid OTP attempts to be restricted in Pre r…
aihamh Sep 15, 2022
679fea1
updated application properties
aihamh Sep 15, 2022
387f487
[MOSIP-15670] Updated as per review
aihamh Sep 16, 2022
156e4fc
[MOSIP-17646] Fixed Preferred language displayed blank for prefetched…
aihamh Sep 21, 2022
4a59012
[MOSIP-17645] Removed browser info fields in Anonymous profile
aihamh Sep 28, 2022
9c15f08
commented browser details
aihamh Sep 29, 2022
1bd961f
triggering build
aihamh Jan 19, 2023
fa6d276
Update README.md
ckm007 Jan 19, 2023
04c4d6f
trigger build
aihamh Jan 19, 2023
b4e795b
Added missing spring boot version
mayuradesh Jan 24, 2023
fc22879
[MOSIP-25637] Updated postgres-init_trigger.yml workflow
Mohanraj209 Feb 14, 2023
59d8fac
Update postgres-init_trigger.yml
Mohanraj209 Feb 15, 2023
379f6b0
[MOSIP-25637] Updated postgres-init_trigger.yml workflow (#593)
Mohanraj209 Feb 16, 2023
0f88f1a
testing db-trigger event
ckm007 Feb 16, 2023
1811c4f
bean defination modified
urviljoshi Sep 16, 2022
432af1b
[MOSIP-25644] Updated hash to HMACUtils2 library
aihamh Jul 18, 2023
fa1d2d4
updated PR
aihamh Jul 18, 2023
4d5a52c
[MOSIP-25644] Fixed otp issue
aihamh Aug 11, 2023
d0c21e3
[MOSIP-28547] Added error for virusScan fail
aihamh Aug 16, 2023
613d549
updated method name
aihamh Aug 16, 2023
3d69c00
[MOSIP-23430] Updated error message
aihamh Aug 17, 2023
4f403fe
[MOSIP-28484] Added error handling for deploy.sh script (#613)
akilalakshmanan Aug 21, 2023
6d1f944
[MOSIP-29142] Updated workflows with reusable templates (#619)
syedsalman3753 Sep 5, 2023
43e5ed9
[MOSIP-29142] update push_trigger & removed postgres-init workflows
Sep 6, 2023
8735d31
[MOSIP-29142] update push-trigger.yml (#622)
syedsalman3753 Sep 6, 2023
0ed97fa
[MOSIP-29142] updated workflows as per reusable workflows templates (…
syedsalman3753 Sep 25, 2023
ebf7359
[MOSIP-29918] added db-test.yml (#626)
Rakshithb1 Nov 15, 2023
33ad9ba
MOSIP-29771 Added log line
ase-101 Nov 23, 2023
a1241f4
[MOSIP-29771] Updated Transliteration version
Dec 4, 2023
fa5610f
[MOSIP-29771] Updated Transliteration version
Dec 4, 2023
9146ca8
[MOSIP-29805] Updated Anonymous profile
Dec 14, 2023
fea02df
[MOSIP-29805] Updated Anonymous profile naming convention
aihamh Dec 19, 2023
9dbee59
[MOSIP-29805] Rebuilt maven
aihamh Dec 19, 2023
6a1ce56
[DSD-3932] removed release-changes.yml, tag.yml and updated push-trig…
Prafulrakhade Dec 20, 2023
a915f19
[MOSIP-29961] removed path from db-test.yml (#641)
Rakshithb1 Jan 2, 2024
3e32752
[MOSIP-20468] Created Specific error code for consumed PRID, [MOSIP-2…
aihamh Mar 15, 2022
491c51b
MOSIP-21214 Added Script to insert record in mosip_prereg application…
kameshsr Apr 8, 2022
94f447a
MOSIP-21214 Added Script to insert record in mosip_prereg application…
kameshsr Apr 8, 2022
52f70ba
[MOSIP-20028] added action for tagging
ckm007 Jul 18, 2022
f03bcde
DB release script re-structurisation changes
mayuradesh Aug 16, 2022
ec3fe5e
MOSIP-23623 Added revoke.sql
kameshsr Aug 19, 2022
943da16
Release Bot Pre-release changes
pramod444 Sep 29, 2022
dc11216
Update README.md
ckm007 Sep 29, 2022
b830689
[MOSIP-24254] reverted pom version
ckm007 Oct 10, 2022
767ddb8
Mosip 23833 (#595)
ckm007 May 15, 2023
c9db422
release-1.2.0.1 build failure issue
mayuradesh Jun 7, 2023
44c9cd8
[MOSIP-27964] Update 1.1.5.5_to_1.2.0.1-B1_upgrade.sql
ckm007 Jun 13, 2023
93b94d6
Update 1.1.5.5_to_1.2.0.1-B1_rollback.sql
ckm007 Jun 13, 2023
46e8296
[MOSIP-27964]
ckm007 Jun 13, 2023
8e22be8
[MOSIP-27964]
ckm007 Jun 15, 2023
10e9710
[MOSIP-28035] Update 1.1.5.5_to_1.2.0.1-B1_rollback.sql (#600)
ckm007 Jun 18, 2023
f13296a
MOSIP-23945 bean defination modified
aihamh Jun 8, 2023
36e9968
[MOSIP-27987] Updated prereg db_upgrade_scripts
aihamh Jun 15, 2023
ec948c7
[MOSIP-27987] Updated scripts
aihamh Jun 19, 2023
d817108
Updated review changes
aihamh Jun 21, 2023
4eab6ac
[MOSIP-27978] Update 1.1.5.5_to_1.2.0.1-B1_upgrade.sql
ckm007 Jun 22, 2023
34ffefb
[MOSIP-28179] Updated internal dependencies
aihamh Jul 3, 2023
888a1c5
[MOSIP-21206] Added support for pre-reg app service also to be a lib
kameshsr Jul 7, 2023
b138ecd
[MOSIP-28225] moved ddl statements to upgrade scripts
aihamh Jul 6, 2023
cce0ad9
deleted ddl files
aihamh Jul 6, 2023
5a1cc72
[MOSIP-28225] Updated PR as per review
aihamh Jul 7, 2023
6cb622f
Update pom.xml
loganathan-sekaran Jul 12, 2023
64f1645
[MOSIP-23518] Update 1.1.5.5_to_1.2.0.1-B1_upgrade.sql (#607)
ckm007 Jul 16, 2023
7ba8d5a
[MOSIP-28488] Update README.md (#608)
Rakshithb1 Jul 17, 2023
29c036f
[MOSIP-28225] Updated upgrade scripts
aihamh Jul 18, 2023
45a3fbd
[MOSIP-27966] Update 1.1.5.5_to_1.2.0.1-B1_rollback.sql
ckm007 Jul 25, 2023
f32955f
[MOSIP-29142] updated workflows as per reusable workflows templates (…
syedsalman3753 Sep 25, 2023
cb71fec
[DSD-3932] removed release-changes.yml, tag.yml and updated push-trig…
Prafulrakhade Dec 20, 2023
e95a07a
Release changes (#640)
ckm007 Dec 20, 2023
a21c312
[MOSIP-29805] Updated Anonymous profile (#634)
aihamh Jan 3, 2024
163b4b0
[DSD-3932] updated push-trigger.yml file (#643)
Prafulrakhade Jan 4, 2024
a9dbaee
[MOSIP-31071] Added logger to debug
aihamh Jan 16, 2024
e0ac408
[MOSIP-31199] Updated internal dependency
aihamh Jan 17, 2024
61d1a73
[MOSIP-31202] updated sql file names (#648)
Prafulrakhade Jan 17, 2024
6582da9
[MOSIP-31071] Removed logger
aihamh Jan 17, 2024
f187b66
[DSD-4255] Fixed Nexus failure
aihamh Jan 19, 2024
633c0f0
[DSD-4255] Fixed Nexus failure
aihamh Jan 19, 2024
7250280
[DSD-4255]Update push-trigger.yml (#651)
Rakshitha650 Jan 19, 2024
8844a4b
[MOSIP-31762] Added db scripts for 1.2.0.1-B3_to_1.2.0.1
aihamh Feb 27, 2024
9ec3845
Updated Pom versions for release changes (#653)
ckm007 Mar 4, 2024
1b87a69
[MOSIP-31762] Updated db scripts (#654)
aihamh Mar 6, 2024
0f753ce
MOSIP-32277
Sohandey Apr 17, 2024
e7daffa
[MOSIP-32507] Migrated Pre-reg services from Java 11 to Java 21
aihamh May 10, 2024
a4fbf21
MOSIP-32363 JAVA 21 upgrade
mohanachandran-s Apr 24, 2024
cce53f9
MOSIP-32363 reverting JAVA 21 upgrade
mohanachandran-s Apr 24, 2024
e84e765
MOSIP-32363 JAVA 21 upgrade
mohanachandran-s Apr 26, 2024
092dbfe
Updated the API commons artifact ID
mohanachandran-s May 3, 2024
9db68fe
Fixed postgres build failure
aihamh May 10, 2024
cb3d59a
Updated batchjob db scripts
aihamh May 21, 2024
f0697fa
Updated db scripts
aihamh May 21, 2024
4590ca3
updated scripts
aihamh May 23, 2024
908b235
updated test cases
aihamh Jun 6, 2024
d4ec92b
[Java21]
JanardhanBS-SyncByte Jun 7, 2024
a5146da
[Java21]
JanardhanBS-SyncByte Jun 10, 2024
ed26bf2
[Java21]
JanardhanBS-SyncByte Jun 10, 2024
4190cd3
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
a0200be
updated test case
aihamh Jun 11, 2024
4d6fedd
MOSIP-32363 - Merged from develop branch and updated the maven plugin…
mohanachandran-s Jun 5, 2024
592c7ea
[DSD-5366] Updated Dockerfile & Push-trigger
VSIVAKALYAN Jun 5, 2024
64dc642
MOSIP-32418 Updated the POM for the groupId and artifactId (#679)
mohanachandran-s Jun 6, 2024
61d8e96
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
086a46b
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
f20109f
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
444687b
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
6d31701
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
ff11df0
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
edee4cf
[Java21]
JanardhanBS-SyncByte Jun 11, 2024
19747b2
Updated code
aihamh Jun 11, 2024
2fa9f70
Updated sign off
aihamh Jun 12, 2024
7a24b73
updated property
aihamh Jun 12, 2024
e5cdc15
updated
aihamh Jun 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .github/keys/mosipgpgkey_pub.gpg
Binary file not shown.
Binary file modified .github/keys/mosipgpgkey_sec.gpg
Binary file not shown.
37 changes: 37 additions & 0 deletions .github/workflows/db-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PostgreSQL Test

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!release-branch'
- release*
- master
- 1.*
- develop*
- MOSIP*
paths:
- 'db_scripts/**'

jobs:
build-db-test:
strategy:
matrix:
include:
- DB_LOCATION: 'db_scripts/mosip_prereg'
DB_NAME: 'mosip_prereg'
fail-fast: false
name: ${{ matrix.DB_NAME }}
uses: mosip/kattu/.github/workflows/db-test.yml@master
with:
DB_LOCATION: ${{ matrix.DB_LOCATION}}
205 changes: 205 additions & 0 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
name: Maven Package upon a push

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!releas-branch'
- release*
- master
- 1.*
- develop*
- develop*
- MOSIP*

jobs:
build-maven-pre-registration:
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./pre-registration
BUILD_ARTIFACT: pre-registration
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

publish_to_nexus:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}"
needs: build-maven-pre-registration
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./pre-registration
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.RELEASE_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-dockers:
needs: build-maven-pre-registration
strategy:
matrix:
include:
- SERVICE_LOCATION: 'pre-registration/pre-registration-application-service'
SERVICE_NAME: 'pre-registration-application-service'
BUILD_ARTIFACT: 'pre-registration'
- SERVICE_LOCATION: 'pre-registration/pre-registration-batchjob'
SERVICE_NAME: 'pre-registration-batchjob'
BUILD_ARTIFACT: 'pre-registration'
- SERVICE_LOCATION: 'pre-registration/pre-registration-datasync-service'
SERVICE_NAME: 'pre-registration-datasync-service'
BUILD_ARTIFACT: 'pre-registration'
- SERVICE_LOCATION: 'pre-registration/pre-registration-captcha-service'
SERVICE_NAME: 'pre-registration-captcha-service'
BUILD_ARTIFACT: 'pre-registration'
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
BUILD_ARTIFACT: ${{ matrix.BUILD_ARTIFACT }}
secrets:
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis:
needs: build-maven-pre-registration
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: ./pre-registration
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-maven-apitest-prereg:
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./apitest
BUILD_ARTIFACT: apitest-prereg
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

publish_to_nexus_apitest_prereg:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}"
needs: build-maven-apitest-prereg
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./apitest
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

build-apitest-prereg-local:
needs: build-maven-apitest-prereg
runs-on: ubuntu-latest
env:
NAMESPACE: ${{ secrets.dev_namespace_docker_hub }}
SERVICE_NAME: apitest-prereg
SERVICE_LOCATION: apitest
BUILD_ARTIFACT: apitest-prereg-local
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Setup the settings file for ossrh server
run: echo "<settings> <servers> <server> <id>ossrh</id> <username>${{secrets.ossrh_user}}</username> <password>${{secrets.ossrh_secret}}</password> </server> </servers> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.executable>gpg2</gpg.executable> <gpg.passphrase>${{secrets.gpg_secret}}</gpg.passphrase> </properties> </profile> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>releases-repo</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> </profile> <profile> <id>sonar</id> <properties> <sonar.sources>.</sonar.sources> <sonar.host.url>https://sonarcloud.io</sonar.host.url> </properties> <activation> <activeByDefault>false</activeByDefault> </activation> </profile> </profiles> </settings>" > $GITHUB_WORKSPACE/settings.xml
- name: Build Automationtests with Maven
run: |
cd ${{ env.SERVICE_LOCATION}}
mvn clean package -s $GITHUB_WORKSPACE/settings.xml
- name: Copy configuration files to target directory.
run: |
cp -r ${{ env.SERVICE_LOCATION}}/target/classes/config ${{ env.SERVICE_LOCATION}}/target/config
cp -r ${{ env.SERVICE_LOCATION}}/testNgXmlFiles ${{ env.SERVICE_LOCATION}}/target/testNgXmlFiles
- name: Ready the springboot artifacts
if: ${{ !contains(github.ref, 'master') || !contains(github.ref, 'main') }}
run: |
## FIND JARS & COPY ONLY EXECUTABLE JARs STORED UNDER TARGET DIRECTORY
find ${{ env.SERVICE_LOCATION }} -path '*/target/*' -exec zip ${{ env.BUILD_ARTIFACT }}.zip {} +
- name: Upload the springboot jars
if: ${{ !contains(github.ref, 'master') || !contains(github.ref, 'main') }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.BUILD_ARTIFACT }}
path: ${{ env.BUILD_ARTIFACT }}.zip
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,author,commit,workflow,job # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # required
if: failure() # Pick up events even if the job fails or is canceled.

build-dockers_apitest_prereg:
needs: build-apitest-prereg-local
strategy:
matrix:
include:
- SERVICE_LOCATION: 'apitest'
SERVICE_NAME: 'apitest-prereg'
BUILD_ARTIFACT: 'apitest-prereg-local'
ONLY_DOCKER: true
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
BUILD_ARTIFACT: ${{ matrix.BUILD_ARTIFACT }}
ONLY_DOCKER: ${{ matrix.ONLY_DOCKER }}
secrets:
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis_apitest_prereg:
needs: build-maven-apitest-prereg
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: ./apitest
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
Loading