Skip to content

Commit

Permalink
Use java config file in main java client build
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerstolzenberg committed Nov 3, 2024
1 parent 4332677 commit 381d078
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/main-branch-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,17 @@ jobs:
# TODO fully implement workflow
steps:
- uses: actions/checkout@v4
- name: Generate Angular Client
- name: Generate Java (Spring RestClient) client
uses: openapi-generators/openapitools-generator-action@v1
with:
generator: java
# TODO param for authzed version
# TODO use config file
openapi-url: "https://raw.githubusercontent.com/authzed/authzed-go/refs/tags/v1.1.0/proto/apidocs.swagger.json"
config-file: cfg/java.yml
# TODO param for authzed version
command-args: |
-p "groupId=com.ewerk.spicedb"
-p "artifactId=authzed-http-client-restclient"
-p "artifactVersion=${java_version}-${authzed_version}-${artifact_version}"
-p "artifactDescription=Auto generated SpiceDB OpenAPI HTTP client based on Spring RestClient."
-p "apiPackage=com.ewerk.spicedb.authzed.http.client"
-p "bigDecimalAsString=true"
-p "dateLibrary=java8"
-p "developerOrganization=EWERK Digital GmbH"
-p "developerOrganizationUrl=https://ewerk.com"
-p "artifactVersion:0.0.0"
-p "library=restclient"
-p "licenseName=Apache License v2"
-p "scmUrl=https://github.com"
-p "scmConnection=scm:git:git@github.com:openapitools/openapi-generator.git"
-p "scmDeveloperConnection=scm:git:git@github.com:openapitools/openapi-generator.git"
- name: Switch into generated java client working directory
run: |
cd typescript-angular-client
cd java-client
13 changes: 13 additions & 0 deletions cfg/java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
additionalProperties:
groupId: com.ewerk.spicedb
artifactId: authzed-http-client-restclient
artifactDescription: Auto generated SpiceDB OpenAPI HTTP client based on Spring RestClient.
apiPackage: com.ewerk.spicedb.authzed.http.client
bigDecimalAsString: true
dateLibrary: java8
developerOrganization: EWERK Digital GmbH
developerOrganizationUrl: https://ewerk.com
licenseName: Apache License v2
scmUrl: https://github.com
scmConnection: scm:git:git@github.com:ewerk/authzed-http-client.git
scmDeveloperConnection: scm:git:git@github.com:ewerk/authzed-http-client.git

0 comments on commit 381d078

Please sign in to comment.