Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frocksdb release guide and helping scripts (#4) #7

Merged
merged 1 commit into from
Nov 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions RELEASE-FROCKSDB.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Optionally:

choco install intellijidea-community vscode

Open git bash and run commands:
Open developer command prompt for vs 2017 and run commands:

git clone git@github.com:dataArtisans/frocksdb.git
cd frocksdb
git checkout FRocksDB-5.17.2 # release branch
java/crossbuild/build-win.bat
java\crossbuild\build-win.bat

The result native library is `build\java\Release\rocksdbjni-shared.dll`.
The result windows jar is `build\java\rocksdbjni_classes.jar`.
Expand Down
2 changes: 1 addition & 1 deletion java/crossbuild/build-win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ cmake -G "Visual Studio 15 Win64" -DWITH_JNI=1 ..

cd ..

copy build\Release\rocksdb-shared.dll librocksdbjni-win64.dll
copy build\java\Release\rocksdbjni-shared.dll librocksdbjni-win64.dll
echo Result is in librocksdbjni-win64.dll
8 changes: 4 additions & 4 deletions java/publish-frocksdbjni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
# fail on errors
set -e

PREFIX=java/target/frocksdb-release/frocksdbjni-${VERSION}

function deploy() {
FILE=$1
CLASSIFIER=$2
echo "Deploying file=${FILE} with classifier=${CLASSIFIER} to sonatype"
echo "Deploying file=${FILE} with classifier=${CLASSIFIER} to sonatype with prefix=${PREFIX}"
sonatype_user=${USER} sonatype_pw=${PASSWORD} mvn gpg:sign-and-deploy-file \
--settings java/deploysettings.xml \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=sonatype-nexus-staging \
-DpomFile=java/frocksdbjni-${VERSION}.pom \
-DpomFile=${PREFIX}.pom \
-Dfile=$FILE \
-Dclassifier=$CLASSIFIER \
-Dgpg.keyname=${KEYNAME} \
-Dgpg.passphrase=${PASSPHRASE}
}

PREFIX=java/target/frocksdb-release/frocksdbjni-${VERSION}

deploy ${PREFIX}-sources.jar sources
deploy ${PREFIX}-javadoc.jar javadoc
deploy ${PREFIX}.jar