Skip to content

Commit

Permalink
Switch to tar.gz assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Oct 3, 2024
1 parent 9b991f6 commit 573c87d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DEV-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Alternatively, you could just build it and install as with any release version:

```bash
mvn clean package
unzip -u "${BUILD_DIR}".zip -d "${TARGET_PATH}"
mkdir -p "${TARGET_PATH}" && tar -xzf "${BUILD_DIR}".tar.gz -C "${TARGET_PATH}"
jupyter kernelspec install "${TARGET_PATH}" --name=java --user
```

Expand Down
7 changes: 4 additions & 3 deletions install-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
#

BUILD_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
BUILD_DIR="jjava/target/jjava-${BUILD_VERSION}"
BUILD_DIR="jjava/target/jjava-${BUILD_VERSION}-kernelspec"
KERNEL_DIR="$(pwd)/${BUILD_DIR}"

mvn clean package || exit 1
unzip -u "${BUILD_DIR}".zip -d "${BUILD_DIR}" || exit 1
jupyter kernelspec install "${KERNEL_DIR}" --name=java --user || exit 1
mkdir -p "${BUILD_DIR}" || exit 2
tar -xzf "${BUILD_DIR}".tar.gz -C "${BUILD_DIR}" || exit 3
jupyter kernelspec install "${KERNEL_DIR}" --name=java --user || exit 4
5 changes: 1 addition & 4 deletions jjava/assembly/zip/zip.xml → jjava/assembly/kernelspec.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.3 http://maven.apache.org/xsd/assembly-1.1.3.xsd">
<id>zip</id>
<formats>
<format>zip</format>
</formats>
<id>kernelspec</id>
<includeBaseDirectory>false</includeBaseDirectory>
<files>
<file>
Expand Down
8 changes: 5 additions & 3 deletions jjava/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,16 +113,18 @@
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble-zip</id>
<id>assemble-kernelspec</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly/zip/zip.xml</descriptor>
<descriptor>assembly/kernelspec.xml</descriptor>
</descriptors>
<appendAssemblyId>false</appendAssemblyId>
<formats>
<format>tar.gz</format>
</formats>
</configuration>
</execution>
</executions>
Expand Down

0 comments on commit 573c87d

Please sign in to comment.