From cdd97a272d1b76f31b28131e42baafadadcb5afb Mon Sep 17 00:00:00 2001
From: reeshika-h
Date: Wed, 23 Oct 2024 17:50:01 +0530
Subject: [PATCH 1/2] fixed semgrep
---
src/main/overview.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/overview.html b/src/main/overview.html
index 81ed5a6e..8abe8a00 100644
--- a/src/main/overview.html
+++ b/src/main/overview.html
@@ -20,7 +20,7 @@ Java SDK for Contentstack
resources to get started with our Java SDK.
Prerequisite
You will need JDK installed on your machine. You can install it from here.
+ href="https://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html">here.
Setup and Installation
To use the Contentstack Java SDK to your existing project, perform the steps given below:
Group id: com.contentstack.sdk
From f94cbef6a6713bb6eeba100664ecf9f927659d7f Mon Sep 17 00:00:00 2001
From: reeshika-h
Date: Thu, 24 Oct 2024 16:10:52 +0530
Subject: [PATCH 2/2] Maven publish added
---
.github/workflows/maven--package-publish.yml | 31 ++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 .github/workflows/maven--package-publish.yml
diff --git a/.github/workflows/maven--package-publish.yml b/.github/workflows/maven--package-publish.yml
new file mode 100644
index 00000000..ed2ad1d8
--- /dev/null
+++ b/.github/workflows/maven--package-publish.yml
@@ -0,0 +1,31 @@
+name: Publishing to Maven Packages
+#on: [ push ] # Trigger the workflow when a push (commit) event occurs
+on:
+ release:
+ types: [ created ]
+jobs:
+ publish-maven:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - uses: actions/checkout@v3
+ - name: Set up Maven Central Repository
+ uses: actions/setup-java@v3
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ server-id: ossrh
+ server-username: MAVEN_USERNAME
+ server-password: MAVEN_PASSWORD
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ gpg-passphrase: GPG_PASSPHRASE
+ - name: Publish to Maven Central Repository
+ run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} deploy
+ env:
+ MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
+ MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
+ GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
+
+# run: mvn --batch-mode deploy
\ No newline at end of file