You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by le...@apache.org on 2024/10/05 17:11:21 UTC

(datasketches-memory) 01/01: Updates for the next release.

This is an automated email from the ASF dual-hosted git repository.

leerho pushed a commit to branch minor_updates
in repository https://gitbox.apache.org/repos/asf/datasketches-memory.git

commit 6433bd92a28e7ef6e4f94ae6d05b8ed321b63c75
Author: Lee Rhodes <le...@gmail.com>
AuthorDate: Sat Oct 5 10:11:01 2024 -0700

    Updates for the next release.
---
 .../datasketches/memory/internal/ResourceTest.java   |  5 +++--
 tools/scripts/sign-deploy-jar.sh                     | 20 ++++++++++++++------
 2 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/datasketches-memory-java8/src/test/java/org/apache/datasketches/memory/internal/ResourceTest.java b/datasketches-memory-java8/src/test/java/org/apache/datasketches/memory/internal/ResourceTest.java
index 4b0703b..e9b498c 100644
--- a/datasketches-memory-java8/src/test/java/org/apache/datasketches/memory/internal/ResourceTest.java
+++ b/datasketches-memory-java8/src/test/java/org/apache/datasketches/memory/internal/ResourceTest.java
@@ -116,8 +116,9 @@ public class ResourceTest {
 
   @Test
   public void checkTypeDecode() {
-    for (int i = 0; i < 128; i++) {
-      ResourceImpl.typeDecode(i);
+    for (int i = 0; i < 256; i++) {
+      String str = ResourceImpl.typeDecode(i);
+      println(i + "\t" + str);
     }
   }
 
diff --git a/tools/scripts/sign-deploy-jar.sh b/tools/scripts/sign-deploy-jar.sh
index afacfd3..662491e 100755
--- a/tools/scripts/sign-deploy-jar.sh
+++ b/tools/scripts/sign-deploy-jar.sh
@@ -17,16 +17,24 @@
 # specific language governing permissions and limitations
 # under the License.
 
-# This is a general bash script to sign and deploy a datasketches-memory-X.jar.
-# This is intended to be used for releasing the Memory component to Maven central.
+# This is a general bash script to sign and deploy datasketches-memory-X.Y.Z.jars to Nexus.
+# This assumes that the jar files exist with X.Y.Z suffix in /target/ 
+#   and were created by "mvn clean install".
+# Also the project.basedir must be set to the X.Y.X candidate at the correct git hash
+# and there must be an X.Y.Z tag at that git hash.
+
+# Even for release candidates, e.g. "-RCn", it is recommended to deploy the candidates
+#   without the "-RCn". If the candidate succeeds, it is trivial just "release" them in Nexus.
+# If the candidate does not succeed, you can just "drop" them in Nexus for the next round.
 
 #  Required Input Parameters:
 #  \$1 = Git Version Tag for this deployment
-#       Example tag for SNAPSHOT         : 1.0.0-SNAPSHOT
-#       Example tag for Release Candidate: 1.0.0-RC1
-#       Example tag for Release          : 1.0.0
+#       Example tag for SNAPSHOT         : 1.0.0-SNAPSHOT  //not recommended
+#       Example tag for Release Candidate: 1.0.0-RC1       //not recommended
+#       Example tag for Release          : 1.0.0           //always use this form
 #  \$2 = absolute path of project.basedir
-#  For example:  $ <this script>.sh 2.1.0 .
+
+#  For example, from the scripts directory:  $ ./sign-deploy-jar.sh 2.1.0 ${project.basedir}
 
 #### Extract GitTag, TestJar and ProjectBaseDir from input parameters ####
 GitTag=$1


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org