From d43e83226374d45d9dd54fc2768ec6ea441c6ee4 Mon Sep 17 00:00:00 2001 From: Yurii Shynbuiev Date: Thu, 27 Feb 2025 00:29:26 +0800 Subject: [PATCH] style: megalinter Signed-off-by: Yurii Shynbuiev --- CONTRIBUTING.md | 2 +- .../client/generator/publish-clients.sh | 24 +++++++++---------- cloud-agent/client/kotlin/build.gradle.kts | 5 ++-- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3fce344e6c..266f8978f1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -57,7 +57,7 @@ Before you submit your Pull Request (PR) consider the following guidelines: 3. Make sure all your commits have DCO sign-off line with an email address that matches the commit author and the name on your GitHub account. -4. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the https://github.com/hyperledger-identus/cloud-agent repo. +4. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the repo. 5. In your forked repository, make your changes in a new git branch: diff --git a/cloud-agent/client/generator/publish-clients.sh b/cloud-agent/client/generator/publish-clients.sh index f7bcce3060..f8dbd302d7 100755 --- a/cloud-agent/client/generator/publish-clients.sh +++ b/cloud-agent/client/generator/publish-clients.sh @@ -9,21 +9,21 @@ yarn -s # Determine if the version is a snapshot or a release if [[ "$AGENT_VERSION" == *-* ]]; then - echo "Publishing snapshot version" + echo "Publishing snapshot version" - # kotlin - gradle -p ../kotlin -Pversion=${AGENT_VERSION}-SNAPSHOT publish --info + # kotlin + gradle -p ../kotlin -Pversion=${AGENT_VERSION}-SNAPSHOT publish --info - # typescript - yarn --cwd ../typescript -s - yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag snapshot --verbose + # typescript + yarn --cwd ../typescript -s + yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag snapshot --verbose else - echo "Publishing release version" + echo "Publishing release version" - # kotlin - gradle -p ../kotlin -Pversion=${AGENT_VERSION} publish closeAndReleaseSonatypeStagingRepository --info + # kotlin + gradle -p ../kotlin -Pversion=${AGENT_VERSION} publish closeAndReleaseSonatypeStagingRepository --info - # typescript - yarn --cwd ../typescript -s - yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag latest --verbose + # typescript + yarn --cwd ../typescript -s + yarn --cwd ../typescript publish --new-version ${AGENT_VERSION} --no-git-tag-version --non-interactive --tag latest --verbose fi diff --git a/cloud-agent/client/kotlin/build.gradle.kts b/cloud-agent/client/kotlin/build.gradle.kts index 520ac78c3d..3ff6ba3e6f 100644 --- a/cloud-agent/client/kotlin/build.gradle.kts +++ b/cloud-agent/client/kotlin/build.gradle.kts @@ -93,13 +93,12 @@ if (System.getenv().containsKey("GPG_PRIVATE") && System.getenv().containsKey("G signing { useInMemoryPgpKeys( project.findProperty("signing.signingSecretKey") as String? ?: System.getenv("GPG_PRIVATE"), - project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("GPG_PASSWORD") + project.findProperty("signing.signingSecretKeyPassword") as String? ?: System.getenv("GPG_PASSWORD"), ) sign(publishing.publications) } } - nexusPublishing { repositories { sonatype { @@ -109,4 +108,4 @@ nexusPublishing { password.set(System.getenv("OSSRH_PASSWORD")) } } -} \ No newline at end of file +}