-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JUCX: publish SNAPHOT and RELEASE jars to maven cental.
- Loading branch information
1 parent
1c75cfd
commit a0c8931
Showing
7 changed files
with
101 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
parameters: | ||
target: publish-snapshot | ||
temp_cfg: $(System.DefaultWorkingDirectory)/bindings/java/src/main/native/build-java/tmp-settings.xml | ||
gpg_dir: $(System.DefaultWorkingDirectory)/bindings/java/src/main/native/build-java/gpg | ||
|
||
steps: | ||
- bash: | | ||
set -eE | ||
{ | ||
echo -e "<settings><servers><server>" | ||
echo -e "<id>ossrh</id><username>\${env.SONATYPE_USERNAME}</username>" | ||
echo -e "<password>\${env.SONATYPE_PASSWORD}</password>" | ||
echo -e "</server></servers></settings>" | ||
} > ${{ parameters.temp_cfg }} | ||
displayName: Generate temporary config | ||
- task: DownloadSecureFile@1 | ||
displayName: Download Secure file | ||
inputs: | ||
secureFile: sparkucx-secret.gpg | ||
name: privateKey | ||
|
||
- task: DownloadSecureFile@1 | ||
displayName: Download Secure file | ||
inputs: | ||
secureFile: sparkucx-public.gpg | ||
name: publicKey | ||
|
||
- bash: | | ||
mkdir ${{ parameters.gpg_dir }} | ||
export GPG_TTY=`tty` | ||
chmod 700 ${{ parameters.gpg_dir }} | ||
cp $(publicKey.secureFilePath) ${{ parameters.gpg_dir }}/pubring.gpg | ||
cp $(privateKey.secureFilePath) ${{ parameters.gpg_dir }}/secring.gpg | ||
export GNUPGHOME=${{ parameters.gpg_dir }} | ||
TAG=`git describe --tags` | ||
# Maven requires version to be of form MAJOR_VERSION.MINOR_VERSIOn,... | ||
# ucx tags are of form v1.x.x - need to remove 'v' from the beginning of string | ||
MAVEN_VERSION=${TAG:1} | ||
make -C bindings/java/src/main/native/ ${{ parameters.target }} \ | ||
ARGS="--settings ${{ parameters.temp_cfg }}" JUCX_VERSION=${MAVEN_VERSION} | ||
displayName: Publish JUCX jar to maven central | ||
env: | ||
GPG_PASSPHRASE: $(GPG_PASSPHRASE) | ||
SONATYPE_PASSWORD: $(SONATYPE_PASSWORD) | ||
SONATYPE_USERNAME: $(SONATYPE_USERNAME) |
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