Skip to content

Commit 8a09cbb

Browse files
committed
Utility script to build and install snapshot version of the JJava
1 parent 385428d commit 8a09cbb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

snapshot-install.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
#
3+
# This script just eases the installation process of the JJava for the development purposes.
4+
# Essentially it's just an automated `maven package && unzip && jupyter kernelspec install` cycle.
5+
#
6+
# Usage: to install SNAPSHOT version of the Kernel just run `./snapshot-install.sh`
7+
#
8+
9+
BUILD_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
10+
BUILD_DIR="jjava/target/jjava-${BUILD_VERSION}"
11+
KERNEL_DIR="$(pwd)/${BUILD_DIR}"
12+
13+
mvn clean package || exit 1
14+
unzip -u "${BUILD_DIR}".zip -d "${BUILD_DIR}" || exit 1
15+
jupyter kernelspec install "${KERNEL_DIR}" --name=java --user || exit 1

0 commit comments

Comments
 (0)