Skip to content

Commit 8a25588

Browse files
authored
Merge branch 'zarr-developers:main' into main
2 parents c9be19b + d5f6af5 commit 8a25588

File tree

2 files changed

+115
-2
lines changed

2 files changed

+115
-2
lines changed

.github/workflows/deploy.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
10+
- uses: actions/checkout@v3
11+
12+
- name: Set up Java 11
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
server-id: ossrh
18+
server-username: MAVEN_USERNAME
19+
server-password: MAVEN_PASSWORD
20+
21+
- name: Install Blosc native library
22+
run: sudo apt-get install -y libblosc1
23+
24+
- id: install-secret-key
25+
name: Install gpg secret key
26+
run: |
27+
# Install gpg secret key
28+
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
29+
# Verify gpg secret key
30+
gpg --list-secret-keys --keyid-format LONG
31+
32+
- name: Publish package
33+
run: mvn --batch-mode deploy
34+
env:
35+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
36+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

pom.xml

+79-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,42 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>dev.zarr.zarrjava</groupId>
7+
<groupId>dev.zarr</groupId>
88
<artifactId>zarr-java</artifactId>
9-
<version>0.0.1-SNAPSHOT</version>
9+
<version>0.0.1</version>
10+
11+
<name>zarr-java</name>
12+
13+
<description>
14+
zarr-java is a Java library providing an implementation of chunked,
15+
compressed, N-dimensional arrays close to the zarr-python package.
16+
</description>
17+
18+
<url>https://github.com/zarr-developers/zarr-java</url>
19+
20+
<licenses>
21+
<license>
22+
<name>MIT License</name>
23+
<url>https://opensource.org/license/mit/</url>
24+
<distribution>repo</distribution>
25+
</license>
26+
</licenses>
27+
28+
<scm>
29+
<url>https://github.com/zarr-developers/zarr-java</url>
30+
<connection>scm:git:git://github.com/zarr-developers/zarr-java.git</connection>
31+
<developerConnection>scm:git:[email protected]:zarr-developers/zarr-java.git</developerConnection>
32+
</scm>
33+
34+
<developers>
35+
<developer>
36+
<id>normanrz</id>
37+
<name>Norman Rzepka</name>
38+
<roles>
39+
<role>maintainer</role>
40+
</roles>
41+
</developer>
42+
</developers>
1043

1144
<properties>
1245
<maven.compiler.source>8</maven.compiler.source>
@@ -85,6 +118,17 @@
85118
</dependency>
86119
</dependencies>
87120

121+
<distributionManagement>
122+
<snapshotRepository>
123+
<id>ossrh</id>
124+
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
125+
</snapshotRepository>
126+
<repository>
127+
<id>ossrh</id>
128+
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
129+
</repository>
130+
</distributionManagement>
131+
88132
<repositories>
89133
<repository>
90134
<id>unidata-all</id>
@@ -103,6 +147,39 @@
103147
<useSystemClassLoader>false</useSystemClassLoader>
104148
</configuration>
105149
</plugin>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-javadoc-plugin</artifactId>
153+
<version>3.5.0</version>
154+
<executions>
155+
<execution>
156+
<id>attach-javadoc</id>
157+
<goals>
158+
<goal>jar</goal>
159+
</goals>
160+
</execution>
161+
</executions>
162+
<configuration>
163+
<source>8</source>
164+
</configuration>
165+
</plugin>
166+
<plugin>
167+
<groupId>org.apache.maven.plugins</groupId>
168+
<artifactId>maven-gpg-plugin</artifactId>
169+
<version>1.6</version>
170+
<executions>
171+
<execution>
172+
<id>sign-artifacts</id>
173+
<phase>verify</phase>
174+
<goals>
175+
<goal>sign</goal>
176+
</goals>
177+
<configuration>
178+
<keyname>9F88D86AD9A0D91E</keyname>
179+
</configuration>
180+
</execution>
181+
</executions>
182+
</plugin>
106183
</plugins>
107184
</build>
108185
</project>

0 commit comments

Comments
 (0)