You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/11/13 10:31:47 UTC
(causeway-app-simpleapp) 01/02: updates script to update to latest nightly
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch jpa-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/causeway-app-simpleapp.git
commit 0ba42a95d59efd69c27acf84eed01b406d7c739e
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Oct 18 22:30:24 2023 +0100
updates script to update to latest nightly
---
.asf.yaml | 36 ++++++++++++++++++++++++++++++++++++
update-parent.sh | 15 ---------------
update-to-latest-nightly.sh | 15 +++++++++++++++
3 files changed, 51 insertions(+), 15 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
new file mode 100644
index 0000000..748adfd
--- /dev/null
+++ b/.asf.yaml
@@ -0,0 +1,36 @@
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# note: documentation can be found here https://cwiki.apache.org/confluence/display/INFRA/Git+-+.asf.yaml+features
+
+
+github:
+ description: "Apache Causeway™ software is a framework for rapidly developing domain-driven apps in Java. This repo contains a sample app to use as a template for getting you started."
+ homepage: https://causeway.apache.org/
+ labels:
+ - java
+ - web-framework
+ - domain-driven-design
+ - ddd
+ - rapid-application-development
+ - rad
+ - naked-objects
+ - restful-objects
+
+
diff --git a/update-parent.sh b/update-parent.sh
deleted file mode 100644
index 0a4ff97..0000000
--- a/update-parent.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-
-if [ $# = 1 ]; then
- PARENT=$1
-else
- PARENT=$(curl -X GET "https://nexus.incode.work/service/rest/v1/search?sort=version&repository=nightly-builds&group=org.apache.causeway.app&name=causeway-app-starter-parent" -H "accept: application/json" -s | jq '.items[0].version' | sed 's/"//g')
-fi
-
-echo "parentVersion = $PARENT"
-mvn versions:update-parent -DparentVersion="[$PARENT]"
-
-CURR=$(grep "<causeway.version>" pom.xml | head -1 | cut -d'>' -f2 | cut -d'<' -f1)
-sed -i "s|<causeway.version>$CURR</causeway.version>|<causeway.version>$PARENT</causeway.version>|g" pom.xml
-
-git add pom.xml
-git commit -m "updates parent pom to $PARENT"
diff --git a/update-to-latest-nightly.sh b/update-to-latest-nightly.sh
new file mode 100644
index 0000000..9aeaf42
--- /dev/null
+++ b/update-to-latest-nightly.sh
@@ -0,0 +1,15 @@
+
+if [ $# = 1 ]; then
+ LATEST_VERSION=$1
+else
+ LATEST_VERSION=$(curl -s https://raw.githubusercontent.com/apache-causeway-committers/causeway-nightly/master/mvn-snapshots/org/apache/isis/isis-bom/maven-metadata.xml | grep '<version>' | tail -1 | cut -f2 -d'>' | cut -f1 -d'<')
+fi
+
+echo "parentVersion = $LATEST_VERSION"
+mvn versions:update-parent -DparentVersion="[$LATEST_VERSION]"
+
+CURR=$(grep "<causeway.version>" pom.xml | head -1 | cut -d'>' -f2 | cut -d'<' -f1)
+sed -i "s|<causeway.version>$CURR</causeway.version>|<causeway.version>$LATEST_VERSION</causeway.version>|g" pom.xml
+
+git add pom.xml
+git commit -m "updates parent pom to $LATEST_VERSION"