You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1afbb8a
Browse filesBrowse the repository at this point in the historyBrowse files
This module contains handwritten classes shared across all editions (CE, PE, PaaS), such as `ThingsboardClient`.
3
+
This module contains handwritten classes and docs shared across all editions (CE, PE, PaaS), such as `ThingsboardClient` and `tb-examples.md`.
4
4
5
5
## How it works
6
6
7
7
-**Not a runtime dependency.** Edition modules (`ce/`, `pe/`, `paas/`) do not depend on this module's artifact.
8
-
-**Source is copied by `generate-client.sh`.** During client generation, the script copies `common/src/main/java/` into each edition's `src/main/java/`. The copied files are replaced on every regeneration — same lifecycle as the generated code.
8
+
-**Source and docs are copied by `generate-client.sh`.** During client generation, the script copies `common/src/main/java/` into each edition's `src/main/java/` and `common/docs/` into each edition's `docs/`. The copied files are replaced on every regeneration — same lifecycle as the generated code.
9
9
-**Compiles against CE.** The `pom.xml` declares a `provided`-scope dependency on `thingsboard-ce-client` solely for IDE support (autocomplete, compilation, navigation). This works because all editions share the same package structure and base classes.
10
10
11
11
## Development workflow
12
12
13
-
1. Edit files here (e.g. `ThingsboardClient.java`) — IDE support works normally
14
-
2. Run `generate-client.sh` to regenerate any edition — common sources are copied automatically
15
-
3. Or copy manually: `cp -r common/src/main/java/* ce/src/main/java/`
13
+
1. Edit files here (e.g. `ThingsboardClient.java`, `docs/tb-examples.md`) — IDE support works normally
14
+
2. Run `generate-client.sh` to regenerate any edition — common sources and docs are copied automatically
15
+
3. Or copy manually: `cp -r common/src/main/java/* ce/src/main/java/` and `cp -r common/docs/* ce/docs/`
0 commit comments