Skip to content

Commit 96e0fdb

Browse files
committed
Release 0.4.0
1 parent a9d3f25 commit 96e0fdb

File tree

6 files changed

+42
-6
lines changed

6 files changed

+42
-6
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ on:
33
push:
44
branches:
55
- main
6-
- r[0-9]+.*
6+
# - r[0-9]+.*
77
pull_request:
88
branches:
99
- main
10-
- r[0-9]+.*
10+
# - r[0-9]+.*
1111
types: [opened, reopened, synchronize]
1212
jobs:
1313
build:

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
*.iml
22
.idea
33
target
4+
5+
settings.xml

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ To import the NdArray library in your project, simply add the following dependen
1111
<dependency>
1212
<groupId>org.tensorflow</groupId>
1313
<artifactId>ndarray</artifactId>
14-
<version>0.3.3</version>
14+
<version>0.4.0</version>
1515
</dependency>
1616
```
1717

ndarray/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<groupId>org.tensorflow</groupId>
2424
<artifactId>tensorflow-java-ndarray</artifactId>
25-
<version>0.4.0-SNAPSHOT</version>
25+
<version>0.4.0</version>
2626
</parent>
2727
<artifactId>ndarray</artifactId>
2828
<packaging>jar</packaging>

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>org.tensorflow</groupId>
77
<artifactId>tensorflow-java-ndarray</artifactId>
8-
<version>0.4.0-SNAPSHOT</version>
8+
<version>0.4.0</version>
99
<packaging>pom</packaging>
1010

1111
<name>NdArray Parent</name>
@@ -82,7 +82,7 @@
8282
</snapshotRepository>
8383
<repository>
8484
<id>ossrh</id>
85-
<url>https://oss.sonatype.org/service/local/staging/deployByRepositoryId/${stagingRepositoryId}/</url>
85+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
8686
</repository>
8787
</distributionManagement>
8888

release.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2023 The TensorFlow Authors. All Rights Reserved.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
# ==============================================================================
16+
#
17+
# Script to upload release artifacts for the TensorFlow Java library to
18+
# Maven Central. See RELEASE.md for an explanation.
19+
20+
cd $(dirname "$0")
21+
shift
22+
shift
23+
24+
export GPG_TTY=$(tty)
25+
set -ex
26+
27+
docker run \
28+
-e GPG_TTY="${GPG_TTY}" \
29+
-v ${PWD}:/tensorflow-java-ndarray \
30+
-v ${HOME}/.gnupg:/root/.gnupg \
31+
-w /tensorflow-java-ndarray \
32+
-it \
33+
maven:3.8.6-jdk-11 \
34+
mvn --settings settings.xml -Preleasing clean deploy -B -U -e

0 commit comments

Comments
 (0)