diff --git a/deploy-kontor.sh b/deploy-kontor.sh new file mode 100755 index 0000000..d5a018b --- /dev/null +++ b/deploy-kontor.sh @@ -0,0 +1,12 @@ +# Posted by barth, modified by community. See post 'Timeline' for change history +# Retrieved 2026-08-19, License - CC BY-SA 4.0 +NEXUS_URL=https://nexus.thpeetz.de +MAVEN_REPO=maven-snapshots +GROUP_ID=de.thpeetz +ARTIFACT_ID=kontor-spring +VERSION=0.3.0-SNAPSHOT +FILE_EXTENSION=jar + +download_url=$(curl -X GET "${NEXUS_URL}/service/rest/v1/search/assets?repository=${MAVEN_REPO}&maven.groupId=${GROUP_ID}&maven.artifactId=${ARTIFACT_ID}&maven.baseVersion=${VERSION}&maven.extension=${FILE_EXTENSION}" -H "accept: application/json" | jq -rc '.items | .[].downloadUrl' | sort | tail -n 1) +wget $download_url +