-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-java.bash
executable file
·14 lines (14 loc) · 1.13 KB
/
run-java.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
echo update openapi-generator
#./bin/utils/openapi-generator-cli.sh
rm -Rf ./namsor/client/java/
echo run openapi-generator
/usr/lib/jvm/default-java/bin/java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate --git-repo-id namsor-java-sdk2 --git-user-id namsor --artifact-version 2.0.30 --group-id com.namsor --artifact-id namsor-sdk2 --invoker-package com.namsor.sdk2.invoke --model-package com.namsor.sdk2.model --api-package com.namsor.sdk2.api -i https://v2uk.namsor.com/NamSorAPIv2/api2/openapi.json -g java -o namsor/client/java
cd ./namsor/client/java/
mvn clean package
cd target
cp -R /home/namsor/codegen/openapi-generator/namsor/client/java/* /home/namsor/codegen/namsor-java-sdk2/
cp /home/namsor/codegen/openapi-generator/run-java.bash /home/namsor/codegen/namsor-java-sdk2/
#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0.jar namsor-sdk2-1.0.0.jar
#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-javadoc.jar namsor-sdk2-1.0.0-javadoc.jar
#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-sources.jar namsor-sdk2-1.0.0-sources.jar
#~/dropbox_uploader.sh upload namsor-sdk2-1.0.0-tests.jar namsor-sdk2-1.0.0-tests.jar