dbeaver / dbeaver/cloudbeaver

CloudBeaver build fails due to incompatible DBeaver version

Open
#3,722 3 comments 0 reactions 0 assignees View on GitHub
deployment
Dominant language
TypeScript
Stars
5.1k
Forks
563
Avg merge
3d 9h
Merged PRs (30d)
59

Description

### Description

When building CloudBeaver using the current [build.sh](https://github.com/dbeaver/cloudbeaver/blob/devel/deploy/build.sh) script, the build fails with errors like:

```bash
CmdProcessResult cannot be resolved
import org.jkiss.dbeaver.model.cli.CmdProcessResult;
```
The backend build script [build-backend.sh](https://github.com/dbeaver/cloudbeaver/blob/devel/deploy/build-backend.sh) always clones the latest master branches of the DBeaver repositories (dbeaver, dbeaver-common, dbeaver-jdbc-libsql):

```bash
[ ! -d dbeaver ] && git clone --depth 1 https://github.com/dbeaver/dbeaver.git
[ ! -d dbeaver-common ] && git clone --depth 1 https://github.com/dbeaver/dbeaver-common.git
[ ! -d dbeaver-jdbc-libsql ] && git clone --depth 1 https://github.com/dbeaver/dbeaver-jdbc-libsql.git
```

CloudBeaver is tightly coupled with specific DBeaver versions, so using a mismatched DBeaver version breaks the build.

**Proposed solution**
Update the build script to clone the DBeaver version that matches the CloudBeaver version being built, instead of always pulling the latest master. This will ensure compatibility and successful builds.

**Additional notes**
• The compilation fails specifically in:
`cloudbeaver/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/cli/CloudBeaverInstanceServer.java
`
• The error is caused by the missing class:

`import org.jkiss.dbeaver.model.cli.CmdProcessResult;
`
[link](https://github.com/dbeaver/cloudbeaver/blob/release_25_1_2/server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/cli/CloudBeaverInstanceServer.java#L23).

This class was removed in the newer DBeaver versions.

### Steps to reproduce

1. Clone CloudBeaver 25.1.2.
2. Run the build script:
`./deploy/build.sh`
3. Observe compilation errors related to CmdProcessResult.

### Expected/Desired Behavior

The build should complete successfully without compilation errors.

### CloudBeaver Version

25.1.2

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.