Skip to content

Commit

Permalink
Create publish script and increase warmup timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
urosjarc committed Mar 25, 2024
1 parent e6baa76 commit 515c43c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tasks.register<GradleBuild>("github") {
this.group = "verification"
this.doFirst {
println("Waiting for services to warm up...")
sleep(60 * 1000)
sleep(120 * 1000)
println("Start with testing...")
}
this.tasks = listOf("test")
Expand Down
34 changes: 34 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/bin/sh

MAVEN_PROJECT="db-messiah-extra"
MAVEN_GROUP="com.urosjarc"
MAVEN_VERSION="0.0.1"
MAVEN_PATH="com/urosjarc/db-messiah-extra"

echo "MAVEN_PROJECT: $MAVEN_PROJECT"
echo "MAVEN_GROUP: $MAVEN_GROUP"
echo "MAVEN_VERSION: $MAVEN_VERSION"
echo "MAVEN_PATH: $MAVEN_PATH"

mkdir -p build/bundle && cd build/bundle || exit

cp -R ~/.m2/repository/"$MAVEN_PATH"/"$MAVEN_VERSION"/* ./

rm -rf ./*.module*
for file in ./*; do md5sum "$file" | awk '{print $1}' > "$file".md5; done
for file in ./*; do sha1sum "$file" | awk '{print $1}' > "$file".sha1; done
rm -rf ./*.md5.sha1

mkdir -p "$MAVEN_PATH"/"$MAVEN_VERSION"
cp -R ./"$MAVEN_PROJECT"-"$MAVEN_VERSION"* ./"$MAVEN_PATH"/"$MAVEN_VERSION"

rm -rf ./"$MAVEN_PROJECT"*
rm -rf bundle-"$MAVEN_VERSION".zip
zip -r bundle-"$MAVEN_VERSION".zip com

rm -rf io
rm -rf coordinates-"$MAVEN_VERSION".txt
echo "$MAVEN_GROUP":"$MAVEN_PROJECT":"$MAVEN_VERSION" > coordinates-"$MAVEN_VERSION".txt

rm -rf ./bundle*.md5* && rm -rf ./bundle*.sha1*
rm -rf ./coordinates*.md5* && rm -rf ./coordinates*.sha1*

0 comments on commit 515c43c

Please sign in to comment.