* fix(template): complete QQQ 4.0 data migration * fix(ci): avoid interactive package restart prompts * docs: align guides and examples with QQQ 4.0 * docs(release): finalize QQQ 4.0 template instructions Refs QRun-IO/qqq#631.
1.6 KiB
1.6 KiB
Getting Started
Targets Java 21, Maven 3.8 or later, and QQQ 4.0.0. Maven resolves the framework dependencies from Maven Central.
- Choose Use this template on GitHub, then clone the repository you created.
- In
pom.xml, set your owngroupId,artifactId, name, description, and version. - Use your IDE's package refactoring to rename
com.kingsrook.qbits.examplethroughoutsrc/. Rename theExample*classes and update their imports and references with the IDE's rename refactoring. - Update the QBit producer's
GROUP_ID,ARTIFACT_ID, andVERSIONconstants to match your project. Give the metadata names their own stable names before combining the QBit with other examples. - Build the generated project:
mvn clean verify
The repository provides example Java sources; customization uses normal package/class refactoring. Keep example coordinates unpublished. After customizing, add tests for your QBit's behavior before setting up its publishing workflow.
Register with a host application
The following uses the original example names; substitute the names chosen above:
new ExampleDataQBitProducer()
.withConfig(new ExampleDataQBitConfig()
.withBackendName("rdbms"))
.produce(qInstance, "my-data");
Register the configured backend in the host first. If you add table prefixes or multiple QBit instances, update related table references, possible-value-source names, and process/widget names consistently. A table prefix alone does not namespace all metadata.
Data QBit Architecture explains the example data model.