From 6407448f7deace075264581a6a64d764509088e7 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Thu, 4 Jul 2024 09:25:25 +0200 Subject: [PATCH 1/2] Copy config from jzarr for maven central --- .github/workflows/deploy.yml | 36 ++++++++++++++++ pom.xml | 79 +++++++++++++++++++++++++++++++++++- 2 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..f751354 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,36 @@ +name: Publish package to the Maven Central Repository +on: + release: + types: [created] +jobs: + publish: + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v3 + + - name: Set up Java 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + server-id: ossrh + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + + - name: Install Blosc native library + run: sudo apt-get install -y libblosc1 + + - id: install-secret-key + name: Install gpg secret key + run: | + # Install gpg secret key + cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import + # Verify gpg secret key + gpg --list-secret-keys --keyid-format LONG + + - name: Publish package + run: mvn --batch-mode deploy + env: + MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} diff --git a/pom.xml b/pom.xml index e3f4e4b..dd41828 100644 --- a/pom.xml +++ b/pom.xml @@ -4,10 +4,43 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - dev.zarr.zarrjava + dev.zarr zarr-java 0.0.1-SNAPSHOT + zarr-java + + + zarr-java is a Java library providing an implementation of chunked, + compressed, N-dimensional arrays close to the zarr-python package. + + + https://github.com/zarr-developers/zarr-java + + + + MIT License + https://opensource.org/license/mit/ + repo + + + + + https://github.com/zarr-developers/zarr-java + scm:git:git://github.com/zarr-developers/zarr-java.git + scm:git:git@github.com:zarr-developers/zarr-java.git + + + + + normanrz + Norman Rzepka + + maintainer + + + + 8 8 @@ -85,6 +118,17 @@ + + + ossrh + https://s01.oss.sonatype.org/content/repositories/snapshots + + + ossrh + https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + unidata-all @@ -103,6 +147,39 @@ false + + org.apache.maven.plugins + maven-javadoc-plugin + 3.5.0 + + + attach-javadoc + + jar + + + + + 8 + + + + org.apache.maven.plugins + maven-gpg-plugin + 1.6 + + + sign-artifacts + verify + + sign + + + 9F88D86AD9A0D91E + + + + From f3697180b131a729930369ebbad7e04d6d9b51ac Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Thu, 4 Jul 2024 09:36:34 +0200 Subject: [PATCH 2/2] Bump to 0.0.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index dd41828..145fdc3 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ dev.zarr zarr-java - 0.0.1-SNAPSHOT + 0.0.1 zarr-java