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

jin pushed a commit to branch release-1.0.0
in repository 
https://gitbox.apache.org/repos/asf/incubator-hugegraph-commons.git


The following commit(s) were added to refs/heads/release-1.0.0 by this push:
     new da2e77d  chore: update release script & add mailing lists
da2e77d is described below

commit da2e77d3eb4c00d6bc774f4acdee12de80bf58f8
Author: imbajin <[email protected]>
AuthorDate: Sat Dec 10 17:17:33 2022 +0800

    chore: update release script & add mailing lists
---
 .gitignore                               |  6 ++---
 hugegraph-dist/scripts/apache-release.sh | 25 +++++++++++++------
 pom.xml                                  | 41 ++++++++++++++++++++++++++++----
 3 files changed, 58 insertions(+), 14 deletions(-)

diff --git a/.gitignore b/.gitignore
index 3ef2d3a..5a63c69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,7 +2,7 @@ target/
 **.db
 logs/
 ui
-node_modules
+node_modules/
 upload-files/
 demo*
 gen-java
@@ -20,7 +20,6 @@ build
 .svn
 
 ### IntelliJ IDEA ###
-.idea
 .idea/
 *.iws
 *.iml
@@ -58,12 +57,14 @@ dist/
 
 # maven ignore
 output/
+apache-hugegraph-*-incubating-*/
 *.war
 *.zip
 *.tar
 *.tar.gz*
 tree.txt
 *.versionsBackup
+.flattened-pom.xml
 
 # eclipse ignore
 .settings/
@@ -81,4 +82,3 @@ hs_err_pid*
 .mtj.tmp/
 # blueJ files
 *.ctxt
-.flattened-pom.xml
diff --git a/hugegraph-dist/scripts/apache-release.sh 
b/hugegraph-dist/scripts/apache-release.sh
index 9423922..992cb40 100755
--- a/hugegraph-dist/scripts/apache-release.sh
+++ b/hugegraph-dist/scripts/apache-release.sh
@@ -17,10 +17,12 @@
 #
 
 GROUP="hugegraph"
-# current REPOsitory name
+# current repository name
 REPO="${GROUP}-commons"
 # release version (input by committer)
 RELEASE_VERSION=$1
+USERNAME=$2
+PASSWORD=$3
 # git release branch (check it carefully)
 GIT_BRANCH="release-${RELEASE_VERSION}"
 
@@ -34,9 +36,12 @@ echo "In the work dir: $(pwd)"
 rm -rfv dist && mkdir -p dist/apache-${REPO}
 
 # step1: package the source code
+cd ../../ || exit
 git archive --format=tar.gz \
   
--output="dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz"
 \
-  --prefix=apache-${REPO}-incubating-"${RELEASE_VERSION}"-src/ "${GIT_BRANCH}" 
|| exit
+  --prefix="apache-${REPO}-incubating-${RELEASE_VERSION}-src/" "${GIT_BRANCH}" 
|| exit
+
+cd - || exit
 
 # step2: copy the binary file (Optional)
 # Note: it's optional for project to generate binary package (skip this step 
if not need)
@@ -73,17 +78,23 @@ SVN_DIR="${GROUP}-svn-dev"
 cd ../
 rm -rfv ${SVN_DIR}
 
+##### 4.1 pull from remote & copy files
 svn co "https://dist.apache.org/repos/dist/dev/incubator/${GROUP}"; ${SVN_DIR}
 mkdir -p ${SVN_DIR}/"${RELEASE_VERSION}"
 cp -v apache-${REPO}/*tar.gz* "${SVN_DIR}/${RELEASE_VERSION}"
 cd ${SVN_DIR} || exit
 
-# check status first
+##### 4.2 check status first
 svn status
-svn add "${RELEASE_VERSION}"
+svn add --parents "${RELEASE_VERSION}"/apache-${REPO}-*
 # check status again
 svn status
-# commit & push files
-svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}"
 
-echo "Finished all, please check all steps in script manually again! "
+##### 4.3 commit & push files
+if [ "$USERNAME" = "" ]; then
+  svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}"
+else
+  svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" --username 
"${USERNAME}" --password "${PASSWORD}"
+fi
+
+echo "Finished all, please check all steps in script manually again!"
diff --git a/pom.xml b/pom.xml
index 7167a93..8d5daa7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,16 +42,49 @@
     <licenses>
         <license>
             <name>The Apache Software License, Version 2.0</name>
-            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
             <distribution>repo</distribution>
         </license>
     </licenses>
 
-   <!-- TODO: update url to upload in maven repo  -->
+    <developers>
+      <developer>
+        <id>Apache Hugegraph(incubating)</id>
+        <email>[email protected]</email>
+        <url>https://hugegraph.apache.org/</url>
+      </developer>
+    </developers>
+
+    <mailingLists>
+      <mailingList>
+        <name>Developer List</name>
+        <subscribe>[email protected]</subscribe>
+        <unsubscribe>[email protected]</unsubscribe>
+        <post>[email protected]</post>
+      </mailingList>
+      <mailingList>
+        <name>Commits List</name>
+        <subscribe>[email protected]</subscribe>
+        <unsubscribe>[email protected]</unsubscribe>
+        <post>[email protected]</post>
+      </mailingList>
+      <mailingList>
+        <name>Issues List</name>
+        <subscribe>[email protected]</subscribe>
+        <unsubscribe>[email protected]</unsubscribe>
+        <post>[email protected]</post>
+      </mailingList>
+    </mailingLists>
+
+    <issueManagement>
+      <system>Github Issues</system>
+      <url>https://github.com/apache/hugegraph-commons/issues</url>
+    </issueManagement>
+
     <scm>
         <url>https://github.com/apache/hugegraph-commons</url>
-        <connection>https://github.com/apache/hugegraph-commons</connection>
-        
<developerConnection>https://github.com/apache/hugegraph-commons</developerConnection>
+        
<connection>scm:git:https://github.com/apache/hugegraph-commons.git</connection>
+        
<developerConnection>scm:git:https://github.com/apache/hugegraph-commons.git</developerConnection>
     </scm>
 
     <properties>

Reply via email to