forked from hyperledger-cacti/cacti
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(api-client): generate java, go clients
Primary Changes --------------- 1. Updated package.json of packages to include the new codegen scripts 2. Added a new workflow to create and upload the jars from the newly added code Changes required to incorporate 1) --------------------------------- 3. Added replace package to assist the codegen scripts written in package.json Fixes hyperledger-cacti#393 Signed-off-by: jagpreetsinghsasan <[email protected]>
- Loading branch information
1 parent
1fb2551
commit 5012f75
Showing
2,701 changed files
with
497,474 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
197 changes: 197 additions & 0 deletions
197
.github/workflows/ghpkg-all-java-api-clients-publish.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
name: ghpkg-all-java-api-clients-publish | ||
|
||
on: | ||
push: | ||
branches: [main, dev] | ||
|
||
pull_request: | ||
branches: [main, dev] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Get the latest release version | ||
run: | | ||
export GITVERSION=$(git describe --tags | awk -F'.' '{print $$1}') | ||
echo "GITVERSION=$GITVERSION" >> $GITHUB_ENV | ||
- uses: actions/[email protected] | ||
with: | ||
distribution: 'adopt' | ||
java-version: '8' | ||
|
||
- name: Setup maven for packaging jars | ||
uses: s4u/[email protected] | ||
with: | ||
maven-version: 3.9.4 | ||
|
||
- name: Set up NodeJS v16.14.2 | ||
uses: actions/[email protected] | ||
with: | ||
node-version: v16.14.2 | ||
|
||
- run: yarn && yarn configure | ||
|
||
- name: build-cactus-cmd-api-server-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-cmd-api-server-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-cmd-api-server-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-cmd-api-server/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-keychain-aws-sm-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-keychain-aws-sm-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-keychain-aws-sm-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-keychain-aws-sm/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-keychain-azure-kv-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-keychain-azure-kv-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-keychain-azure-kv-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-keychain-azure-kv/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-keychain-google-sm-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-keychain-google-sm-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-keychain-google-sm-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-keychain-google-sm/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-keychain-memory-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-keychain-memory-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-keychain-memory-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-keychain-memory/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-keychain-memory-wasm-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-keychain-memory-wasm-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-keychain-memory-wasm-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-keychain-memory-wasm/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-keychain-vault-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-keychain-vault-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-keychain-vault-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-keychain-vault/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-ledger-connector-corda-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-ledger-connector-corda-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-ledger-connector-corda-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-ledger-connector-corda/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-ledger-connector-fabric-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-ledger-connector-fabric-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-ledger-connector-fabric-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-ledger-connector-fabric/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-ledger-connector-sawtooth-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-ledger-connector-sawtooth/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-ledger-connector-sawtooth-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-ledger-connector-sawtooth-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-ledger-connector-sawtooth/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-ledger-connector-ubiquity-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-ledger-connector-ubiquity-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-ledger-connector-ubiquity-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-ledger-connector-ubiquity/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-odap-hermes-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-odap-hermes-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-odap-hermes-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-odap-hermes/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-persistence-ethereum-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-persistence-ethereum-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-persistence-ethereum-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-persistence-ethereum/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
||
- name: build-cactus-plugin-persistence-fabric-java-client | ||
run: | | ||
WDIR=`pwd` | ||
cd ${WDIR}/packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client | ||
mvn clean package | ||
- name: publish-cactus-plugin-persistence-fabric-java-client | ||
uses: actions/[email protected] | ||
with: | ||
name: cactus-plugin-persistence-fabric-java-client-${{ env.GITVERSION }}.jar | ||
path: packages/cactus-plugin-persistence-fabric/src/main/java/generated/openapi/java-client/target/openapi-java-client-1.jar | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.