Currently, the setup scripts only have support for Mac/ZSH environments. Future support is incoming.
To install our linters, simply run ./dev/setup_repo.sh
.
These linters will run on every git commit
operation.
https://www.digitalocean.com/community/tutorials/install-maven-mac-os
Download JDK from https://jdk.java.net/19/ and then uncompress and move to your preferred folder
$ tar -xvf openjdk-19.0.1_macos-aarch64_bin.tar.gz
$ sudo mv jdk-19.jdk/ /Library/Java/JavaVirtualMachines/
Open .bash_profile
and add the following entries at the end of it.
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-19.jdk/Contents/Home"
PATH="${JAVA_HOME}/bin:${PATH}"
export PATH
Open the Terminal and run `java -version`` command.
$ java -version
openjdk version "19.0.1" 2022-10-18
OpenJDK Runtime Environment (build 19.0.1+10-21)
OpenJDK 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)
Download .bin.tar.gz from https://maven.apache.org/download.cgi After downloading, extract it:
$ tar -xvf apache-maven-3.8.6-bin.tar.gz
$ sudo mv apache-maven-3.8.6 /Library/Java/
Set environment variables in .zshrc
export M2_HOME="/Library/Java/apache-maven-3.8.6"
PATH="${M2_HOME}/bin:${PATH}"
export PATH
Check install
$ mvn -version
Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Maven home: /Library/Java/apache-maven-3.8.6
Java version: 19.0.1, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk-19.0.1.jdk/Contents/Home
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "13.0.1", arch: "aarch64", family: "mac"
$ mvn clean && mvn compile
Publishing pangea-sdk to Maven Central is handled via a private GitLab CI
pipeline. This pipeline is triggered when a Git tag is pushed to the repository.
Git tags should be formatted as vX.Y.Z
, where vX.Y.Z
is the version number
to publish.
- Update
<version>
inpackages/pangea-sdk/pom.xml
. - Update the
Version
value inpackages/pangea-sdk/src/main/java/cloud/pangeacyber/pangea/Version.java
. - Update the release notes in
CHANGELOG.md
. - Author a commit with these changes and land it on
main
. git tag -m v1.0.0 v1.0.0 0000000
. Replacev1.0.0
with the new version number and0000000
with the commit SHA from the previous step.git push --tags origin main
.
From here the GitLab CI pipeline will pick up the pushed Git tag and publish the package to Maven Central.
- Andrés Tournour (andres.tournour@gmail.com). Code.
- Glenn Gallien (glenn.gallien@pangea.cloud). Code and docs.
- David Wayman (david.wayman@pangea.cloud). Code and docs.