Skip to content

Commit

Permalink
release(0.0.3): Release 0.0.3 (#116)
Browse files Browse the repository at this point in the history
* chore(deps): bump lombok from 1.18.18 to 1.18.20 (#50)

Bumps [lombok](https://github.com/rzwitserloot/lombok) from 1.18.18 to 1.18.20.
- [Release notes](https://github.com/rzwitserloot/lombok/releases)
- [Changelog](https://github.com/rzwitserloot/lombok/blob/master/doc/changelog.markdown)
- [Commits](projectlombok/lombok@v1.18.18...v1.18.20)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump actions/cache from 2.1.4 to 2.1.6 (#63)

Bumps [actions/cache](https://github.com/actions/cache) from 2.1.4 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](actions/cache@v2.1.4...v2.1.6)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump jackson-bom from 2.12.2 to 2.12.4 (#70)

Bumps [jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.12.2 to 2.12.4.
- [Release notes](https://github.com/FasterXML/jackson-bom/releases)
- [Commits](FasterXML/jackson-bom@jackson-bom-2.12.2...jackson-bom-2.12.4)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump samuelmeuli/action-maven-publish from 1 to 1.4.0 (#57)

Bumps [samuelmeuli/action-maven-publish](https://github.com/samuelmeuli/action-maven-publish) from 1 to 1.4.0.
- [Release notes](https://github.com/samuelmeuli/action-maven-publish/releases)
- [Commits](samuelmeuli/action-maven-publish@v1...v1.4.0)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump everlytic/branch-merge from 1.1.0 to 1.1.2 (#68)

Bumps [everlytic/branch-merge](https://github.com/everlytic/branch-merge) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/everlytic/branch-merge/releases)
- [Commits](everlytic/branch-merge@1.1.0...1.1.2)

---
updated-dependencies:
- dependency-name: everlytic/branch-merge
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump assertj-core from 3.19.0 to 3.20.2 (#76)

Bumps [assertj-core](https://github.com/assertj/assertj-core) from 3.19.0 to 3.20.2.
- [Release notes](https://github.com/assertj/assertj-core/releases)
- [Commits](assertj/assertj@assertj-core-3.19.0...assertj-core-3.20.2)

---
updated-dependencies:
- dependency-name: org.assertj:assertj-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump maven-gpg-plugin from 1.6 to 3.0.1 (#77)

Bumps [maven-gpg-plugin](https://github.com/apache/maven-gpg-plugin) from 1.6 to 3.0.1.
- [Release notes](https://github.com/apache/maven-gpg-plugin/releases)
- [Commits](apache/maven-gpg-plugin@maven-gpg-plugin-1.6...maven-gpg-plugin-3.0.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-gpg-plugin
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump git-commit-id-plugin from 4.0.3 to 4.9.10 (#72)

Bumps git-commit-id-plugin from 4.0.3 to 4.9.10.

---
updated-dependencies:
- dependency-name: pl.project13.maven:git-commit-id-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump jacoco-maven-plugin from 0.8.6 to 0.8.7 (#78)

Bumps [jacoco-maven-plugin](https://github.com/jacoco/jacoco) from 0.8.6 to 0.8.7.
- [Release notes](https://github.com/jacoco/jacoco/releases)
- [Commits](jacoco/jacoco@v0.8.6...v0.8.7)

---
updated-dependencies:
- dependency-name: org.jacoco:jacoco-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Romain Bioteau <[email protected]>

* update dependencies

Signed-off-by: Romain Bioteau <[email protected]>

* chore(deps): bump actions/setup-java from 1 to 2.2.0 (#73)

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 1 to 2.2.0.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v1...v2.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* update setup-java step

Signed-off-by: Romain Bioteau <[email protected]>

* feat(redirect): disable follow redirect (#95)

Disable `followRedirects` by default and add a configuration options.
This can have an impact if a user was expecting a http -> https
redirection.
Feign request options was not inheriting from the okhttp configuration
for timeouts.

Fix BonitaClientIT as default layout and bootstrap theme are not
included in the bundle by default anymore.

* chore(deps-dev): bump logback-classic from 1.2.5 to 1.2.6 (#90)

Bumps logback-classic from 1.2.5 to 1.2.6.

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump jul-to-slf4j from 1.7.30 to 1.7.32 (#83)

Bumps [jul-to-slf4j](https://github.com/qos-ch/slf4j) from 1.7.30 to 1.7.32.
- [Release notes](https://github.com/qos-ch/slf4j/releases)
- [Commits](qos-ch/slf4j@v_1.7.30...v_1.7.32)

---
updated-dependencies:
- dependency-name: org.slf4j:jul-to-slf4j
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump swagger-annotations from 1.6.2 to 1.6.3 (#98)

Bumps swagger-annotations from 1.6.2 to 1.6.3.

---
updated-dependencies:
- dependency-name: io.swagger:swagger-annotations
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump maven-javadoc-plugin from 3.2.0 to 3.3.1 (#89)

Bumps [maven-javadoc-plugin](https://github.com/apache/maven-javadoc-plugin) from 3.2.0 to 3.3.1.
- [Release notes](https://github.com/apache/maven-javadoc-plugin/releases)
- [Commits](apache/maven-javadoc-plugin@maven-javadoc-plugin-3.2.0...maven-javadoc-plugin-3.3.1)

---
updated-dependencies:
- dependency-name: org.apache.maven.plugins:maven-javadoc-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump mockito-junit-jupiter from 3.11.2 to 4.0.0 (#93)

Bumps [mockito-junit-jupiter](https://github.com/mockito/mockito) from 3.11.2 to 4.0.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v3.11.2...v4.0.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump lombok from 1.18.20 to 1.18.22 (#99)

Bumps [lombok](https://github.com/projectlombok/lombok) from 1.18.20 to 1.18.22.
- [Release notes](https://github.com/projectlombok/lombok/releases)
- [Changelog](https://github.com/projectlombok/lombok/blob/master/doc/changelog.markdown)
- [Commits](projectlombok/lombok@v1.18.20...v1.18.22)

---
updated-dependencies:
- dependency-name: org.projectlombok:lombok
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump okhttp.version from 4.9.1 to 4.9.2 (#100)

Bumps `okhttp.version` from 4.9.1 to 4.9.2.

Updates `okhttp` from 4.9.1 to 4.9.2
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md)
- [Commits](square/okhttp@parent-4.9.1...parent-4.9.2)

Updates `logging-interceptor` from 4.9.1 to 4.9.2
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md)
- [Commits](square/okhttp@parent-4.9.1...parent-4.9.2)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.squareup.okhttp3:logging-interceptor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump awaitility from 4.1.0 to 4.1.1 (#103)

Bumps [awaitility](https://github.com/awaitility/awaitility) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/awaitility/awaitility/releases)
- [Changelog](https://github.com/awaitility/awaitility/blob/master/changelog.txt)
- [Commits](awaitility/awaitility@awaitility-4.1.0...awaitility-4.1.1)

---
updated-dependencies:
- dependency-name: org.awaitility:awaitility
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(userTask): use the proper filter name (#94)

* chore(deps): bump testcontainers-bom from 1.16.0 to 1.16.2 (#101)

Bumps [testcontainers-bom](https://github.com/testcontainers/testcontainers-java) from 1.16.0 to 1.16.2.
- [Release notes](https://github.com/testcontainers/testcontainers-java/releases)
- [Changelog](https://github.com/testcontainers/testcontainers-java/blob/master/CHANGELOG.md)
- [Commits](testcontainers/testcontainers-java@1.16.0...1.16.2)

---
updated-dependencies:
- dependency-name: org.testcontainers:testcontainers-bom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump assertj-core from 3.20.2 to 3.21.0 (#102)

Bumps [assertj-core](https://github.com/assertj/assertj-core) from 3.20.2 to 3.21.0.
- [Release notes](https://github.com/assertj/assertj-core/releases)
- [Commits](assertj/assertj@assertj-core-3.20.2...assertj-core-3.21.0)

---
updated-dependencies:
- dependency-name: org.assertj:assertj-core
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump junit-bom from 5.7.2 to 5.8.1 (#104)

Bumps [junit-bom](https://github.com/junit-team/junit5) from 5.7.2 to 5.8.1.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](junit-team/junit5@r5.7.2...r5.8.1)

---
updated-dependencies:
- dependency-name: org.junit:junit-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(feign): disable 404 decoder (#96)

404 response are handled in the BOnitaErrorDecode and throws
NotFoundExcpetion which is the expected behavior.

Enabling 404 decoder returns empty instances which is confusing.

* chore(deps): bump jackson-bom from 2.12.4 to 2.13.0 (#92)

Bumps [jackson-bom](https://github.com/FasterXML/jackson-bom) from 2.12.4 to 2.13.0.
- [Release notes](https://github.com/FasterXML/jackson-bom/releases)
- [Commits](FasterXML/jackson-bom@jackson-bom-2.12.4...jackson-bom-2.13.0)

---
updated-dependencies:
- dependency-name: com.fasterxml.jackson:jackson-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump actions/setup-java from 2.2.0 to 2.3.1 (#91)

* chore(deps): bump actions/setup-java from 2.2.0 to 2.3.1

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v2.2.0...v2.3.1)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* update setup-java with temurin and cache management

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Romain Bioteau <[email protected]>

* chore(deps): bump feign-bom from 11.6 to 11.7 (#105)

Bumps [feign-bom](https://github.com/openfeign/feign) from 11.6 to 11.7.
- [Release notes](https://github.com/openfeign/feign/releases)
- [Changelog](https://github.com/OpenFeign/feign/blob/master/CHANGELOG.md)
- [Commits](OpenFeign/feign@11.6...11.7)

---
updated-dependencies:
- dependency-name: io.github.openfeign:feign-bom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* enable followRedirect

* chore(deps): bump openapi-generator-maven-plugin from 5.2.1 to 5.3.0 (#97)

Bumps openapi-generator-maven-plugin from 5.2.1 to 5.3.0.

---
updated-dependencies:
- dependency-name: org.openapitools:openapi-generator-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(ci): stop using sonar for dependabot builds (#110)

* chore(deps-dev): bump logback-classic from 1.2.6 to 1.2.7 (#109)

Bumps logback-classic from 1.2.6 to 1.2.7.

---
updated-dependencies:
- dependency-name: ch.qos.logback:logback-classic
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump sonar-maven-plugin from 3.9.0.2155 to 3.9.1.2184 (#107)

Bumps [sonar-maven-plugin](https://github.com/SonarSource/sonar-scanner-maven) from 3.9.0.2155 to 3.9.1.2184.
- [Release notes](https://github.com/SonarSource/sonar-scanner-maven/releases)
- [Commits](SonarSource/sonar-scanner-maven@3.9.0.2155...3.9.1.2184)

---
updated-dependencies:
- dependency-name: org.sonarsource.scanner.maven:sonar-maven-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump okhttp.version from 4.9.2 to 4.9.3 (#113)

Bumps `okhttp.version` from 4.9.2 to 4.9.3.

Updates `okhttp` from 4.9.2 to 4.9.3
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md)
- [Commits](square/okhttp@parent-4.9.2...parent-4.9.3)

Updates `logging-interceptor` from 4.9.2 to 4.9.3
- [Release notes](https://github.com/square/okhttp/releases)
- [Changelog](https://github.com/square/okhttp/blob/master/CHANGELOG.md)
- [Commits](square/okhttp@parent-4.9.2...parent-4.9.3)

---
updated-dependencies:
- dependency-name: com.squareup.okhttp3:okhttp
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.squareup.okhttp3:logging-interceptor
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump mockito-junit-jupiter from 4.0.0 to 4.1.0 (#112)

Bumps [mockito-junit-jupiter](https://github.com/mockito/mockito) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/mockito/mockito/releases)
- [Commits](mockito/mockito@v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: org.mockito:mockito-junit-jupiter
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump actions/cache from 2.1.6 to 2.1.7 (#115)

Bumps [actions/cache](https://github.com/actions/cache) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](actions/cache@v2.1.6...v2.1.7)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(users): add create group/role/profile (#108)

Co-authored-by: haroun.elalami <[email protected]>

* feat(bdm): result dynamic types with lazy get via a proxy (#114)

* chore(openapi): use 0.0.4 version of bonita openapi
* chore(bdm): bdm custom queries support with dynamic response types

Co-authored-by: Romain Bioteau <[email protected]>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Romain Bioteau <[email protected]>
Co-authored-by: Adrien <[email protected]>
Co-authored-by: Baptiste Mesta <[email protected]>
Co-authored-by: haroun.elalami <[email protected]>
  • Loading branch information
8 people committed Nov 29, 2021
1 parent 766794b commit c567816
Show file tree
Hide file tree
Showing 279 changed files with 50,619 additions and 43,527 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2.3.1
with:
java-version: 11
distribution: adopt

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
Expand Down
29 changes: 21 additions & 8 deletions .github/workflows/workflow-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,40 @@ on:
jobs:

build:
if: ${{ github.actor != 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Cache SonarCloud packages
uses: actions/[email protected].4
uses: actions/[email protected].7
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: maven
- name: Build and test project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -B -ntp clean verify sonar:sonar -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Dsonar.scanner.force-deprecated-java-version=true
build-dependabot:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: maven
- name: Build and test project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./mvnw -B -ntp clean verify
13 changes: 4 additions & 9 deletions .github/workflows/workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11
distribution: temurin
cache: maven

- name: Compile and test project
env:
Expand All @@ -30,7 +25,7 @@ jobs:

# Build and Push snapshots to maven central
- name: Build and Push snapshots to Maven central
uses: samuelmeuli/action-maven-publish@v1
uses: samuelmeuli/action-maven-publish@v1.4.0
with:
maven_args: "-DskipTests=true"
gpg_private_key: ${{ secrets.gpg_private_key }}
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/workflow-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Cache Maven packages
uses: actions/[email protected]
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11

distribution: temurin
cache: maven

# Extract version
- name: Extract version
shell: bash
Expand All @@ -33,7 +28,7 @@ jobs:

# Build and Push release to maven central
- name: Build and Push release to Maven central
uses: samuelmeuli/action-maven-publish@v1
uses: samuelmeuli/action-maven-publish@v1.4.0
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
Expand All @@ -60,7 +55,7 @@ jobs:
ref: 'dev'

# Merge master into dev
- uses: everlytic/[email protected].0
- uses: everlytic/[email protected].2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_ref: 'master'
Expand Down
5 changes: 5 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,17 @@ src/main/java/org/bonitasoft/web/client/api/TaskApi.java
src/main/java/org/bonitasoft/web/client/api/TenantApi.java
src/main/java/org/bonitasoft/web/client/api/ThemeApi.java
src/main/java/org/bonitasoft/web/client/api/TimerEventTriggerApi.java
src/main/java/org/bonitasoft/web/client/api/UploadApi.java
src/main/java/org/bonitasoft/web/client/api/UserApi.java
src/main/java/org/bonitasoft/web/client/api/UserTaskApi.java
src/main/java/org/bonitasoft/web/client/invoker/ApiClient.java
src/main/java/org/bonitasoft/web/client/invoker/ApiResponseDecoder.java
src/main/java/org/bonitasoft/web/client/invoker/EncodingUtils.java
src/main/java/org/bonitasoft/web/client/invoker/ParamExpander.java
src/main/java/org/bonitasoft/web/client/invoker/RFC3339DateFormat.java
src/main/java/org/bonitasoft/web/client/invoker/StringUtil.java
src/main/java/org/bonitasoft/web/client/invoker/auth/ApiKeyAuth.java
src/main/java/org/bonitasoft/web/client/invoker/auth/DefaultApi20Impl.java
src/main/java/org/bonitasoft/web/client/invoker/auth/HttpBasicAuth.java
src/main/java/org/bonitasoft/web/client/invoker/auth/HttpBearerAuth.java
src/main/java/org/bonitasoft/web/client/model/AbstractArchivedTask.java
Expand All @@ -84,6 +87,7 @@ src/main/java/org/bonitasoft/web/client/model/Actor.java
src/main/java/org/bonitasoft/web/client/model/ActorDefinition.java
src/main/java/org/bonitasoft/web/client/model/ActorMember.java
src/main/java/org/bonitasoft/web/client/model/ActorUpdateRequest.java
src/main/java/org/bonitasoft/web/client/model/ApiResponse.java
src/main/java/org/bonitasoft/web/client/model/Application.java
src/main/java/org/bonitasoft/web/client/model/ApplicationMenu.java
src/main/java/org/bonitasoft/web/client/model/ApplicationMenuCreateRequest.java
Expand Down Expand Up @@ -200,6 +204,7 @@ src/main/java/org/bonitasoft/web/client/model/ThemeRestoreRequest.java
src/main/java/org/bonitasoft/web/client/model/TimerEventTrigger.java
src/main/java/org/bonitasoft/web/client/model/TimerEventTriggerUpdateRequest.java
src/main/java/org/bonitasoft/web/client/model/TimerEventTriggerUpdateResponse.java
src/main/java/org/bonitasoft/web/client/model/UpdateProcessConnectorByProcessIdRequest.java
src/main/java/org/bonitasoft/web/client/model/User.java
src/main/java/org/bonitasoft/web/client/model/UserCreateRequest.java
src/main/java/org/bonitasoft/web/client/model/UserTask.java
Expand Down
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.0.0
5.3.0
1 change: 1 addition & 0 deletions .openapi-generator/bonita-openapi-0.0.4-default.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9fdb4528d1a70c92c78d8c29d30e203ee7f60ed334766b7c41343edde1ad9460
1 change: 1 addition & 0 deletions .openapi-generator/openapi-default.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e46273b252c25c8f79777a9870ee0baf6000a9daced2bd22494935c0a56c621c
2 changes: 1 addition & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

:project-group-id: org.bonitasoft.web
:project-artifact-id: bonita-java-client
:project-version: 0.0.2
:project-version: 0.0.3
:bonita-short-version: 7.11
:orga: bonitasoft
:uri-org: https://github.com/{orga}
Expand Down
59 changes: 57 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ endif::[]
// Vars
:project-group-id: org.bonitasoft.web
:project-artifact-id: bonita-java-client
:project-version: 0.0.2
:project-version: 0.0.3
:bonita-short-version: 7.11
:orga: bonitasoft
:uri-org: https://github.com/{orga}
Expand Down Expand Up @@ -160,7 +160,7 @@ WARNING: Please note that this is not recommended from a security point of view
[source, java]
----
// Create your custom ObjectMapper
ObjectMapper myObjectMapper = = new ObjectMapper();
ObjectMapper myObjectMapper = new ObjectMapper();
// Configure bonita client to use your custom ObjectMapper
BonitaClient client = BonitaClient.builder("http://localhost:8080/bonita")
Expand Down Expand Up @@ -200,6 +200,61 @@ BonitaClient client = bonitaClientBuilder
.build();
----

== Samples

=== BDM typed queries

Bonita allow users to define their own custom "named" queries. That's why this client can't have java object ready to be mapped to the query results. But the client allow
developers to specify the desired returned type when performing custom queries.

As an exmple, let's say with have a model in our client project code for `Post`,`Comment` and `Author` defined this way

[source, java]
----
public interface Post {
Author getAuthor();
String getTitle();
String getContent();
List<Comment> getComments();
}
public interface Comment {
Long getUserId();
LocalDateTime getCreationDate();
String getContent();
}
public class Author {
private String firstName;
private String lastName;
// Getter and Setter omitted ...
}
----

Interface with `Getter` methods are a good choice since we consider the retrieved data as immutable.

Bonus, it allow for lazy fetch of relations as defined in the BDM !

[source, java]
----
// Count comment and map response to an Integer
Integer count = bonitaClient.bdm().querySingle("com.company.model.Comment", "countForFind", Integer.class);
// List comments and map response to a list of Comment
List<Post> posts = bonitaClient.bdm().query("com.company.model.Post", "find", Post.class);
Post post = posts.get(O);
// This will trigger an HTTP GET request to get the related comments from the BDM
List<Comment> comments = post.getComments();
----

If you prefer a map style like approach, you can still use the BusinessData class.
[source, java]
----
List<BusinessData> comments = bonitaClient.bdm().query("com.company.model.Comment", "find", BusinessData.class);
String content = comments.get(0).get("content")
----

== Developing

=== Prerequisite
Expand Down
Loading

0 comments on commit c567816

Please sign in to comment.