Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
284 commits
Select commit Hold shift + click to select a range
a78acf2
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
350c6ac
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
b7bb70a
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
6336bdb
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
519bfe4
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
570736e
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
807edda
Update sonarqube.yml
vibhutikumar07 Aug 7, 2024
3f3a136
Update pom.xml
vibhutikumar07 Aug 7, 2024
7b38ba9
Merge pull request #14 from cap-java/SDMEXT-487/UTsWithSonar
vibhutikumar07 Aug 7, 2024
714c7bc
Update sonarscan job name
yashmeet29 Aug 7, 2024
b8f0690
Update sonar.yml to distinguish between pull_request trigger & manual…
yashmeet29 Aug 7, 2024
a16cd6a
Merge pull request #15 from cap-java/updateSonarJobName
vibhutikumar07 Aug 8, 2024
5e7158d
Merge branch 'develop' into SDMEXT-605
rashmiangadi11 Aug 8, 2024
3e582c9
indenta
rashmiangadi11 Aug 8, 2024
6bdf200
Delete workspace.xml
rashmiangadi11 Aug 8, 2024
a49275c
spotless check
rashmiangadi11 Aug 8, 2024
2a32270
Review comments
rashmiangadi11 Aug 8, 2024
c1c6943
Sonar fixes
rashmiangadi11 Aug 8, 2024
96c7211
Sonar fixes
rashmiangadi11 Aug 8, 2024
341aeaa
Update pom.xml
rashmiangadi11 Aug 8, 2024
953836d
Merge pull request #11 from cap-java/SDMEXT-605
rashmiangadi11 Aug 8, 2024
16f7990
Create CODE_OF_CONDUCT.md
vibhutikumar07 Aug 19, 2024
ec105f9
Create CONTRIBUTING.md
vibhutikumar07 Aug 19, 2024
ca9f8ab
Create Apache-2.0.txt
vibhutikumar07 Aug 19, 2024
a9f2866
Create CHANGELOG.md
vibhutikumar07 Aug 19, 2024
d36d36e
Update CODE_OF_CONDUCT.md
vibhutikumar07 Aug 19, 2024
1376a02
Update CODE_OF_CONDUCT.md
vibhutikumar07 Aug 19, 2024
f38b95a
Update CONTRIBUTING.md
vibhutikumar07 Aug 19, 2024
25c69c1
Update README.md
vibhutikumar07 Aug 19, 2024
74e2f45
Update CONTRIBUTING.md
vibhutikumar07 Aug 19, 2024
ba8c510
Update CODE_OF_CONDUCT.md
vibhutikumar07 Aug 19, 2024
a4c274d
Update CONTRIBUTING.md
vibhutikumar07 Aug 19, 2024
d96b96d
Update README.md
vibhutikumar07 Aug 19, 2024
2d555ff
Update CODE_OF_CONDUCT.md
vibhutikumar07 Aug 21, 2024
b749656
Create dep5
vibhutikumar07 Aug 21, 2024
9e918c7
Merge pull request #18 from cap-java/Public_Repo
vibhutikumar07 Aug 21, 2024
8a60766
Removing number from output
rashmiangadi11 Aug 22, 2024
729a83c
Update attachments-demo-app.capnb
rashmiangadi11 Aug 22, 2024
60e12a7
Merge pull request #19 from cap-java/publicRepo
vibhutikumar07 Aug 23, 2024
bcf1112
Update dep5 (#21)
yashmeet29 Sep 16, 2024
13c2d70
[SDMEXT-696] README (#22)
rishikunnath2747 Sep 18, 2024
976bb20
SDMEXT-536 Setup PR merge validation (#17)
vibhutikumar07 Oct 7, 2024
6c82887
[SDMEXT-550] Create attachment on upload (#25)
rishikunnath2747 Oct 9, 2024
87684d7
Update codeql.yml (#28)
vibhutikumar07 Oct 9, 2024
0f275c1
Update codeql.yml
vibhutikumar07 Oct 9, 2024
c7bae51
Read Attachments
yashmeet29 Oct 9, 2024
0d90439
Merge branch 'develop' into SDMEXT-551/ReadAttachments
yashmeet29 Oct 9, 2024
cd30fa8
Sonar fixes
yashmeet29 Oct 9, 2024
ce69220
Merge branch 'SDMEXT-551/ReadAttachments' of https://github.com/cap-j…
yashmeet29 Oct 9, 2024
aba512f
Merge pull request #30 from cap-java/SDMEXT-551/ReadAttachments
yashmeet29 Oct 9, 2024
2d22693
DINC0297793:[SDM Java Plugin] Correct the columns in attachment UI
rashmiangadi11 Oct 17, 2024
f0054d4
Review comments
rashmiangadi11 Oct 17, 2024
e17a6b7
Merge pull request #31 from cap-java/InternalIncident-DINC0297793
rashmiangadi11 Oct 17, 2024
a70cd76
Sdmext 552 :Support delete attachment in SDM repository (#24)
rashmiangadi11 Oct 21, 2024
4c71acf
Adding service exceptions
rishikunnath2747 Oct 24, 2024
45f169b
UTs
rishikunnath2747 Oct 25, 2024
da85173
Sdmext 591 display attachments specific to a repository (#35)
rashmiangadi11 Oct 29, 2024
6aca83c
Merge branch 'develop' into SDMEXT-764/errorHandling
rashmiangadi11 Oct 29, 2024
b448e16
spotless
rashmiangadi11 Oct 29, 2024
a6b7de9
UT failure
rashmiangadi11 Oct 29, 2024
df0098c
Update SDMServiceImpl.java
rashmiangadi11 Oct 29, 2024
c26d291
Merge pull request #34 from cap-java/SDMEXT-764/errorHandling
rashmiangadi11 Oct 30, 2024
fc01d70
Rename Attachment
yashmeet29 Nov 4, 2024
37bc673
Fix + UT
rishikunnath2747 Nov 5, 2024
c970fb0
Fix
rishikunnath2747 Nov 5, 2024
2da4a8b
Updating error messages
rishikunnath2747 Nov 6, 2024
0b71155
Update error messages
rishikunnath2747 Nov 6, 2024
ea82b30
Updating error message
rishikunnath2747 Nov 6, 2024
ca8ea2e
UTs
rishikunnath2747 Nov 7, 2024
ef625f8
Review comments & UTs
yashmeet29 Nov 7, 2024
5b50f49
Sonar fixes
yashmeet29 Nov 7, 2024
c09e4d9
Error Messages
rishikunnath2747 Nov 8, 2024
3e0e8fe
Update Readme
rishikunnath2747 Nov 8, 2024
e5ae8b5
Review comments & updated cds-feature-attachments version to 1.0.5
yashmeet29 Nov 8, 2024
8c281d8
Review comments
yashmeet29 Nov 8, 2024
12648e1
changes
rashmiangadi11 Nov 8, 2024
78ace9d
UTs
yashmeet29 Nov 8, 2024
62c9c78
Merge pull request #38 from cap-java/errorMessages
rashmiangadi11 Nov 8, 2024
bcf6259
Merge branch 'develop' into SDMEXT-554/RenameAttachments
yashmeet29 Nov 8, 2024
884c205
Merge pull request #37 from cap-java/SDMEXT-554/RenameAttachments
yashmeet29 Nov 8, 2024
042d676
Merge branch 'develop' into SDMEXT-801
yashmeet29 Nov 8, 2024
6d5be99
Update readme
rishikunnath2747 Nov 11, 2024
dd2a2a9
Changes
rashmiangadi11 Nov 11, 2024
bab7386
SDMEXT-803Attachments UI column allignment and default i18n propertie…
rashmiangadi11 Nov 11, 2024
b323d7f
comments
rashmiangadi11 Nov 11, 2024
19c3122
Blackduck scan fix
yashmeet29 Nov 11, 2024
9ac7cab
Update readme
rishikunnath2747 Nov 12, 2024
fc81fa1
Merge pull request #40 from cap-java/SDMEXT-803
yashmeet29 Nov 12, 2024
9575698
Update error message
rishikunnath2747 Nov 12, 2024
78dd7cd
Adding name constraint check
rishikunnath2747 Nov 12, 2024
33f6c3d
changes
rishikunnath2747 Nov 12, 2024
fed57f6
making filename list
rishikunnath2747 Nov 13, 2024
c938511
spotless & UTs fix
yashmeet29 Nov 13, 2024
0b34e37
changes
rashmiangadi11 Nov 13, 2024
521b283
Merge branch 'develop' into SDMEXT-801
rishikunnath2747 Nov 15, 2024
fec1c8d
Merge pull request #39 from cap-java/SDMEXT-801
rishikunnath2747 Nov 15, 2024
ef1c20b
pom dependencies update
yashmeet29 Nov 18, 2024
49a4b70
Uts
yashmeet29 Nov 18, 2024
f004dd3
Merge branch 'develop' into SDMEXT-830/BlackduckScanFixes
yashmeet29 Nov 18, 2024
49a4b10
Lowercase a in attachments section on UI:DINC0335682
rashmiangadi11 Nov 19, 2024
fed1fc4
Merge pull request #45 from cap-java/DINC0335682
rashmiangadi11 Nov 19, 2024
54d93e8
Update library versions
yashmeet29 Nov 19, 2024
3c02d86
SDMEXT-813:Upload of large files(50 MB)
rashmiangadi11 Nov 19, 2024
efd6217
Merge branch 'develop' into SDMEXT-813-UploadLargeFiles
rashmiangadi11 Nov 19, 2024
def972c
Update SDMServiceImplTest.java
rashmiangadi11 Nov 19, 2024
a6aecaf
Sonar fixes
rashmiangadi11 Nov 19, 2024
614620b
Update SDMConstants.java
rashmiangadi11 Nov 19, 2024
1ab9c58
Merge branch 'develop' into SDMEXT-830/BlackduckScanFixes
yashmeet29 Nov 19, 2024
df328b0
remove demoApp files
yashmeet29 Nov 21, 2024
01381cd
Review comments
rashmiangadi11 Nov 21, 2024
40a2cf8
Merge pull request #41 from cap-java/SDMEXT-830/BlackduckScanFixes
yashmeet29 Nov 21, 2024
6393928
Merge branch 'develop' into SDMEXT-813-UploadLargeFiles
yashmeet29 Nov 21, 2024
41db99d
Sonar fixes
rashmiangadi11 Nov 21, 2024
94726d3
Merge branch 'SDMEXT-813-UploadLargeFiles' of https://github.com/cap-…
rashmiangadi11 Nov 21, 2024
ba2ae89
Update pom.xml
yashmeet29 Nov 22, 2024
ed4105a
Sonar fix
rashmiangadi11 Nov 22, 2024
8c44d65
update libraries
yashmeet29 Nov 22, 2024
1ce4904
FixVirusError
yashmeet29 Nov 25, 2024
205588f
Update pom.xml
rashmiangadi11 Nov 25, 2024
b7ab5b4
Update pom dependency
yashmeet29 Nov 25, 2024
fd792d3
Update pom.xml
rashmiangadi11 Nov 25, 2024
ba5744a
Merge pull request #53 from cap-java/FixVirusError
yashmeet29 Nov 26, 2024
2295cf2
deployment error
rashmiangadi11 Nov 26, 2024
f585141
Merge branch 'develop' into SDMEXT-813-UploadLargeFiles
rashmiangadi11 Nov 26, 2024
a33bbd4
Merge pull request #46 from cap-java/SDMEXT-813-UploadLargeFiles
yashmeet29 Nov 26, 2024
efc4aa6
Sdmext 538 setup release pipeline (#44)
vibhutikumar07 Nov 26, 2024
e4f4ab3
Merge branch 'develop' into UpdateLibraryVersion
yashmeet29 Nov 26, 2024
9fb6044
Update pom.xml
yashmeet29 Nov 26, 2024
29ffedb
Update pom.xml
yashmeet29 Nov 26, 2024
43a5dbb
Update pom.xml
yashmeet29 Nov 27, 2024
1486cd1
changelog
rishikunnath2747 Nov 28, 2024
fb19a55
update
rishikunnath2747 Nov 28, 2024
a601637
remove jakarta.jms library
yashmeet29 Nov 28, 2024
a4f53b1
Update readme
rishikunnath2747 Nov 28, 2024
bc5f785
fix
rishikunnath2747 Nov 28, 2024
7d021b3
Merge pull request #52 from cap-java/UpdateLibraryVersion
yashmeet29 Nov 28, 2024
45a959a
Merge branch 'develop' into SDMEXT-571/updateChangelog
rishikunnath2747 Nov 29, 2024
8681edc
fix
rishikunnath2747 Nov 29, 2024
6d30237
fix
rishikunnath2747 Nov 29, 2024
370266c
Merge pull request #55 from cap-java/SDMEXT-571/updateChangelog
rishikunnath2747 Nov 29, 2024
72e514f
Merge branch 'develop' into SDMEXT-572/readme
yashmeet29 Nov 29, 2024
5dd34b4
remove comment
rishikunnath2747 Nov 29, 2024
a7213ee
Merge branch 'SDMEXT-572/readme' of https://github.com/cap-java/sdm i…
rishikunnath2747 Nov 29, 2024
85b9a44
Exclude models from sonar scan
yashmeet29 Nov 29, 2024
8c7ca61
Update CmisDocument.java
yashmeet29 Nov 29, 2024
945f097
Removed unused var
yashmeet29 Nov 29, 2024
d40be47
Merge pull request #57 from cap-java/SonarFixOnDevelop
yashmeet29 Nov 29, 2024
1a4661a
Merge branch 'develop' into SDMEXT-572/readme
yashmeet29 Nov 29, 2024
5d36fb1
Add exclusion to sonarQube.yml
yashmeet29 Nov 29, 2024
d534ec7
Merge pull request #58 from cap-java/SonarFixes
yashmeet29 Nov 29, 2024
b44ff5b
Merge branch 'develop' into SDMEXT-572/readme
rishikunnath2747 Dec 2, 2024
48bd25a
Update readme
rishikunnath2747 Dec 2, 2024
29f4ecc
fix link
rishikunnath2747 Dec 2, 2024
53efadd
fix
rishikunnath2747 Dec 2, 2024
6d45b89
fix
rishikunnath2747 Dec 3, 2024
ce778b8
fix
rishikunnath2747 Dec 3, 2024
799f048
Fix
rishikunnath2747 Dec 3, 2024
03ce181
Merge pull request #56 from cap-java/SDMEXT-572/readme
rishikunnath2747 Dec 3, 2024
5f04d4b
Update version to v1.0.0-beta
github-actions[bot] Dec 3, 2024
4e38a77
Update pom.xml (#64)
vibhutikumar07 Dec 3, 2024
02b14a6
Update version to 1.0.0
github-actions[bot] Dec 4, 2024
ac4d0ca
Update handlers
yashmeet29 Dec 5, 2024
c9e33ab
Merge branch 'develop' into SDMEXT-817/specialCharactersInFileName
yashmeet29 Dec 5, 2024
3e7857b
SDMEXT-546 (Setup PR merge with cf push) (#67)
vibhutikumar07 Dec 13, 2024
8cf5f22
SDMEXT-913:Multitenancy Changes in the plugin
rashmiangadi11 Dec 13, 2024
4637e36
Update sonarqube.yml
rashmiangadi11 Dec 16, 2024
e960e02
Update sonarqube.yml
yashmeet29 Dec 16, 2024
cc0a6ff
Merge pull request #69 from cap-java/SDMEXT-913
yashmeet29 Dec 16, 2024
3e8b030
Merge branch 'develop' into SDMEXT-817/specialCharactersInFileName
yashmeet29 Dec 18, 2024
db6a4c6
Update regex & ErrorMessage
yashmeet29 Dec 18, 2024
bf0c65e
UT & minor fixes
yashmeet29 Dec 19, 2024
975d7a9
Delete settings.json
yashmeet29 Dec 19, 2024
45b885d
spotless fix
yashmeet29 Dec 19, 2024
1e74f0e
sonar fix
yashmeet29 Dec 19, 2024
d8170d6
cds version compatibility
rashmiangadi11 Dec 20, 2024
50d87d6
Changes to get folderid
PujaDeshmukh17 Dec 20, 2024
c394b68
Delete Attachments is not deleting the attachments from SDM repositor…
rashmiangadi11 Dec 20, 2024
3a1eafd
UT's
rashmiangadi11 Dec 20, 2024
e8dc20b
changes
rashmiangadi11 Dec 20, 2024
09a7828
changes
rashmiangadi11 Dec 20, 2024
b187aa9
Merge pull request #71 from cap-java/DINC0366562
yashmeet29 Dec 20, 2024
a9456f5
UT update
PujaDeshmukh17 Dec 20, 2024
70a65bf
Merge branch 'develop' into BlockedMimeType
PujaDeshmukh17 Dec 20, 2024
bfa7d8e
Removed cds4j api
rashmiangadi11 Dec 20, 2024
ee63cd0
Merge pull request #73 from cap-java/cds4j
yashmeet29 Dec 21, 2024
f48d90d
ChangeLog & Version update to 1.0.1
yashmeet29 Dec 21, 2024
04983bf
Update Resolve goal and changeLog
yashmeet29 Dec 23, 2024
b536b2d
Fix code types in readme
chgeo Dec 6, 2024
a99f363
Merge branch 'develop' into SDMEXT-899/ChangeLog
yashmeet29 Dec 23, 2024
2b3457c
Merge pull request #74 from cap-java/SDMEXT-899/ChangeLog
yashmeet29 Dec 23, 2024
0128999
Update v1.0.1 to v1.0.1-SNAPSHOT
yashmeet29 Dec 23, 2024
ad5d51d
Merge pull request #75 from cap-java/1.0.1-SNAPSHOT
yashmeet29 Dec 23, 2024
49c918c
Update version to 1.0.1
github-actions[bot] Dec 24, 2024
31b15ad
update content
rishikunnath2747 Jan 2, 2025
37890a7
Merge branch 'develop' into BlockedMimeType
rashmiangadi11 Jan 6, 2025
b624f99
Merge pull request #72 from cap-java/BlockedMimeType
PujaDeshmukh17 Jan 7, 2025
6d5d824
fix readme
rishikunnath2747 Jan 7, 2025
3a645f5
add timeout configuration in mta.yaml
rishikunnath2747 Jan 7, 2025
f4bbd02
Merge branch 'develop' into SDMEXT-930/updateReadme
rishikunnath2747 Jan 7, 2025
82d9f0f
fix
rishikunnath2747 Jan 7, 2025
d3250e1
Update exception messages
yashmeet29 Jan 7, 2025
8a469e9
Merge branch 'develop' into SDMEXT-817/specialCharactersInFileName
yashmeet29 Jan 7, 2025
30665da
Merge pull request #76 from cap-java/SDMEXT-930/updateReadme
rishikunnath2747 Jan 8, 2025
ec7e4ef
Merge branch 'develop' into SDMEXT-817/specialCharactersInFileName
yashmeet29 Jan 8, 2025
2918092
Merge pull request #70 from cap-java/SDMEXT-817/specialCharactersInFi…
yashmeet29 Jan 8, 2025
24207b0
[SDMEXT-555] Integration tests (#54)
rishikunnath2747 Jan 10, 2025
ec3cc09
Update cfdeploy.yml
vibhutikumar07 Jan 10, 2025
ab6b378
Snapshot version update (#78)
vibhutikumar07 Jan 13, 2025
3c3d1d3
Update cfdeploy.yml (#79)
vibhutikumar07 Jan 16, 2025
26cd7d9
Adding a check for sdm roles while renaming
PujaDeshmukh17 Jan 16, 2025
9b66b89
Reverting value of repo id
PujaDeshmukh17 Jan 16, 2025
7ec969a
Merge branch 'develop' into RenameNoSdmRoleBug
PujaDeshmukh17 Jan 16, 2025
a09ef6d
Uncommenting integration tests
PujaDeshmukh17 Jan 16, 2025
4e37651
Update cfdeploy.yml
vibhutikumar07 Jan 20, 2025
b021cba
Error message fix when a user with No SDM Roles uploads an attachment
yashmeet29 Jan 20, 2025
6c4a941
Merge branch 'develop' into DINC0374658/UploadNoSDMRolesBug
yashmeet29 Jan 20, 2025
400bfd9
Merge branch 'develop' into RenameNoSdmRoleBug
rashmiangadi11 Jan 20, 2025
9cd7d82
SDMEXT-850and 851:[Java] Implement API requests to SDM using Cloud SD…
rashmiangadi11 Jan 21, 2025
94542e4
Merge branch 'develop' into SDMEXT-850
rashmiangadi11 Jan 21, 2025
e894103
sonar
rashmiangadi11 Jan 21, 2025
45ee33f
Merge branch 'SDMEXT-850' of https://github.com/cap-java/sdm into SDM…
rashmiangadi11 Jan 21, 2025
3e859af
Adding switch cases for different error codes
PujaDeshmukh17 Jan 21, 2025
6e1a0c5
Reverting method access
PujaDeshmukh17 Jan 21, 2025
2715d42
Review comments
rashmiangadi11 Jan 22, 2025
693a3a6
Merge pull request #82 from cap-java/DINC0374658/UploadNoSDMRolesBug
yashmeet29 Jan 22, 2025
15316d9
Merge branch 'develop' into SDMEXT-850
rashmiangadi11 Jan 22, 2025
18b5fbc
Merge from Develop
rashmiangadi11 Jan 22, 2025
189602d
Update blackduck.yml
vibhutikumar07 Jan 23, 2025
2fe0424
Update blackduck.yml
vibhutikumar07 Jan 23, 2025
2aea10f
Update blackduck.yml
vibhutikumar07 Jan 23, 2025
c44ad4a
Update blackduck.yml
vibhutikumar07 Jan 23, 2025
60a5769
Update blackduck.yml
vibhutikumar07 Jan 23, 2025
2ad95e9
Merge pull request #83 from cap-java/SDMEXT-850
rashmiangadi11 Jan 23, 2025
ffd319d
Merge branch 'develop' into RenameNoSdmRoleBug
PujaDeshmukh17 Jan 23, 2025
3bf7ff2
SDMEXT-931 - Use snapshot build in deploy to CF job (#85)
vibhutikumar07 Jan 23, 2025
8539274
Update cfdeploy.yml
vibhutikumar07 Jan 23, 2025
13a39e9
Merge branch 'develop' into RenameNoSdmRoleBug
rashmiangadi11 Jan 23, 2025
70d8175
Update cfdeploy.yml
vibhutikumar07 Jan 23, 2025
e384323
Merge branch 'develop' into RenameNoSdmRoleBug
vibhutikumar07 Jan 23, 2025
a762aea
Merge pull request #80 from cap-java/RenameNoSdmRoleBug
PujaDeshmukh17 Jan 23, 2025
8983fd9
Enhancing message for 404 object not found
PujaDeshmukh17 Jan 27, 2025
7c5e6ff
Merge branch 'develop' into Read404Bug_ErrorUpdate
PujaDeshmukh17 Jan 27, 2025
84a7a88
Changing variable
PujaDeshmukh17 Jan 27, 2025
793515d
Updated version of codec
PujaDeshmukh17 Jan 29, 2025
20d0b67
Merge pull request #86 from cap-java/Read404Bug_ErrorUpdate
PujaDeshmukh17 Jan 29, 2025
99bd977
Deploy & Integration test added for manual trigger (#89)
vibhutikumar07 Feb 4, 2025
0f4a2fe
ChangeLog & Version update for rel1.0.2 (#90)
yashmeet29 Feb 5, 2025
62d2df7
Updated the Deploy and integration test job so that it'll run on indi…
vibhutikumar07 Feb 5, 2025
e0fb068
Update main-build.yml (#104)
vibhutikumar07 Feb 6, 2025
538d950
Reuse Version update from dep to toml
ajinkyapatil8190 Feb 8, 2025
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
39 changes: 39 additions & 0 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Maven Build
description: "Builds a Maven project."

inputs:
java-version:
description: "The Java version the build shall run with."
required: true
maven-version:
description: "The Maven version the build shall run with."
required: true
mutation-testing:
description: "Whether to run mutation testing."
default: 'true'
required: false

runs:
using: composite
steps:
- name: Set up Java ${{ inputs.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
distribution: sapmachine
cache: maven

- name: Setup Maven ${{ inputs.maven-version }}
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ inputs.maven-version }}

- name: Build with Maven
run: |
mvn clean install -P unit-tests -DskipIntegrationTests
shell: bash

# - name: Piper Maven build
# uses: SAP/project-piper-action@main
# with:
# step-name: mavenBuild
97 changes: 97 additions & 0 deletions .github/actions/deploy-release/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
name: Maven Release
description: "Deploys a Maven package to Maven Central repository."

inputs:
user:
description: "The user used for the upload (technical user for maven central upload)"
required: true
password:
description: "The password used for the upload (technical user for maven central upload)"
required: true
profile:
description: "The profile id"
required: true
pgp-pub-key:
description: "The public pgp key ID"
required: true
pgp-private-key:
description: "The private pgp key"
required: true
pgp-passphrase:
description: "The passphrase for pgp"
required: true
revision:
description: "The revision of sdm"
required: true

runs:
using: composite
steps:
- name: "Echo Inputs"
run: |
echo "user: ${{ inputs.user }}"
echo "profile: ${{ inputs.profile }}"
shell: bash

- name: "Setup Java"
uses: actions/setup-java@v4
with:
distribution: 'sapmachine'
java-version: '17'
server-id: ossrh
server-username: MAVEN_CENTRAL_USER
server-password: MAVEN_CENTRAL_PASSWORD

- name: "Import GPG Key"
run: |
echo "${{ inputs.pgp-private-key }}" | gpg --batch --passphrase "$PASSPHRASE" --import
shell: bash
env:
PASSPHRASE: ${{ inputs.pgp-passphrase }}

- name: "Ensure Local Repo Directory"
run: |
mkdir -p ./deploy-oss/temp_local_repo
ls -al ./deploy-oss
shell: bash

- name: "Deploy Locally"
run: |
echo "Deploying artifacts locally..."
mvn --batch-mode --no-transfer-progress --fail-at-end --show-version \
-Durl=file:./temp_local_repo \
-Dmaven.install.skip=true \
-Dmaven.test.skip=true \
-Dgpg.passphrase="$GPG_PASSPHRASE" \
-Dgpg.keyname="$GPG_PUB_KEY" \
-Drevision="${{ inputs.revision }}" \
deploy
working-directory: ./deploy-oss
shell: bash
env:
MAVEN_CENTRAL_USER: ${{ inputs.user }}
MAVEN_CENTRAL_PASSWORD: ${{ inputs.password }}
GPG_PASSPHRASE: ${{ inputs.pgp-passphrase }}
GPG_PUB_KEY: ${{ inputs.pgp-pub-key }}

- name: "List Contents of Local Repo"
run: |
echo "Contents of temp_local_repo:"
ls -al ./deploy-oss/temp_local_repo
shell: bash

- name: "Deploy Staging"
run: |
mvn --batch-mode --no-transfer-progress --fail-at-end --show-version \
org.sonatype.plugins:nexus-staging-maven-plugin:1.6.13:deploy-staged-repository \
-DserverId=ossrh \
-DnexusUrl=https://oss.sonatype.org \
-DrepositoryDirectory=./temp_local_repo \
-DstagingProfileId="$MAVEN_CENTRAL_PROFILE_ID" \
-Drevision="${{ inputs.revision }}"
working-directory: ./deploy-oss
shell: bash
env:
MAVEN_CENTRAL_USER: ${{ inputs.user }}
MAVEN_CENTRAL_PASSWORD: ${{ inputs.password }}
MAVEN_CENTRAL_PROFILE_ID: ${{ inputs.profile }}
62 changes: 62 additions & 0 deletions .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Deploy to artifactory
description: "Deploys artifacts to artifactory."

inputs:
repository-url:
description: "The URL of the repository to upload to."
required: true
server-id:
description: "The service id of the repository to upload to."
required: true
user:
description: "The user used for the upload."
required: true
password:
description: "The password used for the upload."
required: true
pom-file:
description: "The path to the POM file."
required: false
default: "pom.xml"
maven-version:
description: "The Maven version the build shall run with."
required: true

runs:
using: composite
steps:
- name: Echo Inputs
run: |
echo "repository-url: ${{ inputs.repository-url }}"
echo "user: ${{ inputs.user }}"
echo "password: ${{ inputs.password }}"
echo "pom-file: ${{ inputs.pom-file }}"
echo "altDeploymentRepository: ${{inputs.server-id}}::default::${{inputs.repository-url}}"
shell: bash

- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: sapmachine
java-version: '17'
server-id: ${{ inputs.server-id }}
server-username: CAP_DEPLOYMENT_USER
server-password: CAP_DEPLOYMENT_PASS

- name: Setup Maven ${{ inputs.maven-version }}
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ inputs.maven-version }}

- name: Deploy
run: >
mvn -B -ntp --fae --show-version
-DaltDeploymentRepository=${{inputs.server-id}}::default::${{inputs.repository-url}}
-Dmaven.install.skip=true
-Dmaven.test.skip=true
-f ${{ inputs.pom-file }}
deploy
env:
CAP_DEPLOYMENT_USER: ${{ inputs.user }}
CAP_DEPLOYMENT_PASS: ${{ inputs.password }}
shell: bash
40 changes: 40 additions & 0 deletions .github/actions/newrelease/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Update POM with new release
description: Updates the revision property in the POM file with the new release version.

inputs:
java-version:
description: "The Java version the build shall run with."
required: true
maven-version:
description: "The Maven version the build shall run with."
default: '3.6.3'
required: false

runs:
using: composite
steps:
- name: Set up JDK ${{ inputs.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ inputs.java-version }}
distribution: sapmachine
cache: maven

- name: Setup Maven ${{ inputs.maven-version }}
uses: stCarolas/setup-maven@v5
with:
maven-version: ${{ inputs.maven-version }}

- name: Update version
run: |
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
echo $VERSION > cap-notebook/version.txt
mvn --no-transfer-progress versions:set-property -Dproperty=revision -DnewVersion=$VERSION
#chmod +x ensure-license.sh
#./ensure-license.sh
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git checkout -b develop
git commit -am "Update version to $VERSION"
git push --set-upstream origin develop
shell: bash
56 changes: 56 additions & 0 deletions .github/workflows/blackduck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Blackduck analysis

on:
push:
branches:
- develop
pull_request:
branches:
- develop
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
pull-requests: read # allows SonarQube to decorate PRs with analysis results

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Install dependencies
run: |
mvn clean install -P unit-tests -DskipIntegrationTests

- name: Download Synopsys Detect Script
run: curl --silent -O https://detect.synopsys.com/detect9.sh

- name: Run & analyze BlackDuck Scan
run: |
bash ./detect9.sh -d \
--logging.level.com.synopsys.integration=DEBUG \
--blackduck.url="https://sap.blackducksoftware.com" \
--blackduck.api.token=""${{ secrets.BLACKDUCK_TOKEN }}"" \
--detect.blackduck.signature.scanner.arguments="--min-scan-interval=0" \
--detect.maven.build.command="install -P unit-tests -DskipIntegrationTests" \
--detect.latest.release.version="9.6.0" \
--detect.project.version.distribution="SaaS" \
--detect.blackduck.signature.scanner.memory=4096 \
--detect.timeout=6000 \
--blackduck.trust.cert=true \
--detect.project.user.groups="SAP_DOC_MGMT_CAPPLUGIN_JAVA1.0" \
--detect.project.name="SAP_DOC_MGMT_CAPPLUGIN_JAVA1.0" \
--detect.project.version.name="1.0" \
--detect.code.location.name="SAP_DOC_MGMT_CAPPLUGIN_JAVA1.0/1.0" \
--detect.source.path="/home/runner/work/sdm/sdm/sdm"
84 changes: 84 additions & 0 deletions .github/workflows/cfdeploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Deploy

on:
workflow_dispatch:
inputs:
cf_space:
description: 'Specify the Cloud Foundry space to deploy to'
required: true
repository_id:
description: 'Specify the Repository ID (leave blank if deploying to developcap)'
required: false

permissions:
pull-requests: read

jobs:
Deploy:
runs-on: cap-java

steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: develop

- name: Set up Java 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'

- name: Verify and Checkout Deploy Branch
run: |
git fetch origin
if git rev-parse --verify origin/develop_deploy; then
git checkout develop_deploy
else
echo "Branch 'develop_deploy' not found. Please verify the branch name."
exit 1
fi

- name: Deleting the sdm directory for fresh build
run: |
pwd
cd
rm -rf .m2/repository/com/sap/cds

- name: Set REPOSITORY_ID
id: set_repository_id
run: |
if [ "${{ github.event.inputs.cf_space }}" = "developcap" ]; then
echo "Using REPOSITORY_ID from secrets'
echo "::set-output name=repository_id::${{ secrets.REPOSITORY_ID }}"
else
if [ -z "${{ github.event.inputs.repository_id }}" ]; then
echo "REPOSITORY_ID must be provided for non-developcap spaces"
exit 1
else
echo "Using provided REPOSITORY_ID"
echo "::set-output name=repository_id::${{ github.event.inputs.repository_id }}"
fi
fi

- name: Prepare and Deploy to Cloud Foundry
run: |
echo "Current Branch......"
git branch
pwd
cd /sapmnt/home/I355238/actions-runner/_work/sdm/sdm/cap-notebook/demoapp

# Replace placeholder with actual REPOSITORY_ID value
sed -i 's|__REPOSITORY_ID__|'${{ steps.set_repository_id.outputs.repository_id }}'|g' ./mta.yaml

mbt build

# Install cf CLI plugin
cf install-plugin multiapps -f

# Login to Cloud Foundry again to ensure session is active
cf login -a ${{ secrets.CF_API }} -u ${{ secrets.CF_USER }} -p ${{ secrets.CF_PASSWORD }} -o ${{ secrets.CF_ORG }} -s ${{ github.event.inputs.cf_space }}

# Deploy the application
echo "Running cf deploy"
cf deploy mta_archives/demoappjava_1.0.0.mtar -f
Loading
Loading