-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(init): remove publishing from github action pipeline - this will …
…come later. For now we can use the release.sh script.
- Loading branch information
1 parent
218334c
commit 86a1ba6
Showing
8 changed files
with
74 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
SCRIPT_DIR=$(dirname $0) | ||
|
||
USER_GRADLE_PROPERTIES=$HOME/.gradle/gradle.properties | ||
|
||
check_configured() { | ||
grep -q "$1" ${USER_GRADLE_PROPERTIES} || echo "$1 not configured in ${USER_GRADLE_PROPERTIES}. $2" | ||
} | ||
|
||
check_configuration() { | ||
if [ ! -f ${USER_GRADLE_PROPERTIES} ]; then | ||
echo "${USER_GRADLE_PROPERTIES} does not exist" | ||
exit 1 | ||
fi | ||
|
||
check_configured "sonatypeUsername" "This is the username you use to authenticate with sonatype nexus (e.g. otto-de)" | ||
check_configured "sonatypePassword" "This is the password you use to authenticate with sonatype nexus (ask Guido or one of the developers)" | ||
check_configured "signing.secretKeyRingFile" "This is the gpg secret key file, e.g. ~/.gnupg/secring.gpg. If this doesn't exist, generate a key: gpg --gen-key" | ||
check_configured "signing.keyId" "This is the id of your key (e.g. 72FE5380). Use gpg --list-keys to find yours" | ||
check_configured "signing.password" "This is the password you defined for your gpg key" | ||
# gpg --send-keys --keyserver keyserver.ubuntu.com yourKeyId | ||
} | ||
|
||
check_configuration | ||
|
||
set +e | ||
grep 'version = .*-SNAPSHOT' "$SCRIPT_DIR/gradle.properties" | ||
SNAPSHOT=$? | ||
set -e | ||
|
||
"${SCRIPT_DIR}"/gradlew clean check | ||
|
||
if [[ $SNAPSHOT == 1 ]]; then | ||
echo "Publishing, closing and releasing into Sonatype OSS repository" | ||
"${SCRIPT_DIR}"/gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
else | ||
echo "Publishing into Sonatype OSS repository" | ||
"${SCRIPT_DIR}"/gradlew publishToSonatype | ||
echo "This is a snapshot release. Closing in sonatype is not necessary" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = 'messaging.kafka.e2ee' | ||
rootProject.name = 'kafka-messaging-e2ee' |