Step 3: Make it yours
The template carries its own name in many files. This step replaces it with yours and removes the example module in the language you don't use. It's mechanical, and you only do it once.
You have two ways to do it: run a script that does the whole job, or work through the manual checklist. Both end at the same leftover check.
Pick your valuesβ
Pick these first, and check the other Continuum repositories to make sure the names aren't already in use:
| Placeholder | Example | Used for | Changing it later |
|---|---|---|---|
<org> | acme | Your GitHub organisation or user, and your Docker Hub organisation | Easy. |
<repo> | continuum-feature-demo | Repository, Gradle root project, feature module, Helm chart, worker and Docker image name | Possible, but you repeat this whole step. |
<package> | com.acme.demo | Package for your nodes (the node classes go in <package>.node) | Breaks saved workflows that use your nodes, because the package is part of each node's identity. Don't change it after shipping. |
<TASK_QUEUE> | CONTINUUM_FEATURE_DEMO_TASK_QUEUE | Temporal task queue. Must be unique across all workers in your Continuum instance. | Change it in application.yaml and the chart together. |
<valuesKey> | featureDemo | The key under continuum: in the Helm chart's values | Easy, but change it in every chart file. |
Use a package that starts with a domain you control (com.acme.demo) or io.github.<your-user>. Don't use org.projectcontinuum.*: that namespace belongs to the platform. The feature module's Maven group is set to your package, and Maven Central only accepts a group whose namespace you've verified. If you don't plan to publish your feature modules as libraries, you can ignore this and switch publishing off in Step 6.
Every worker needs its own task queue. If two workers share one, Temporal gives a node's work to whichever worker polls first, including one that doesn't have that node, and the node fails at random. Search the other Continuum repositories before you pick a name.
Which example do you keep?β
The template ships the same Hello World node twice: features/continuum-feature-hello (Kotlin) and features/continuum-feature-hello-java (Java). Keep the one that matches the language you write and delete the other. Mixing languages in one module isn't supported by the template; if you want both, keep both modules and run through the checklist for each.
Option A: Run the rename scriptβ
The script below does everything in Option B except editing the descriptions and the README. It's been tested on a fresh clone of the template for both the Kotlin and the Java variants, followed by ./gradlew build.
- Commit or stash anything you changed so you can review the result with
git diff. - Save the script as
rename.shoutside the repository (for example in your home folder). - Edit the six values at the top, including
LANGUAGE. - Run it from anywhere inside your clone:
bash ~/rename.sh.
It needs bash and perl, which macOS and Linux have. On Windows, use WSL or Git Bash.
rename.sh
#!/usr/bin/env bash
set -euo pipefail
# ---- Edit these six values ---------------------------------------------
export ORG=acme # your GitHub organisation or user
export REPO=continuum-feature-demo # repository, module, chart and worker name
export PKG=com.acme.demo # package for your nodes (without .node)
export TASK_QUEUE=CONTINUUM_FEATURE_DEMO_TASK_QUEUE
export VALUES_KEY=featureDemo # key under `continuum:` in the Helm values
export IMAGE=acme/continuum-feature-demo # Docker image, without a tag
LANGUAGE=kotlin # kotlin or java: which example module to keep
# -------------------------------------------------------------------------
cd "$(git rev-parse --show-toplevel)"
if [ "$LANGUAGE" = kotlin ]; then
KEEP=continuum-feature-hello
export OLD_PKG=org.projectcontinuum.feature.example
export DROP_RE='continuum-feature-hello-java'
export DROP_PLUGIN='id\("org\.projectcontinuum\.feature-java"\)'
DROP=continuum-feature-hello-java
else
KEEP=continuum-feature-hello-java
export OLD_PKG=org.projectcontinuum.feature.example.java
export DROP_RE='continuum-feature-hello(?!-java)'
export DROP_PLUGIN='id\("org\.projectcontinuum\.feature"\)'
DROP=continuum-feature-hello
fi
export SHORT="${REPO#continuum-}"
OLD_PATH="${OLD_PKG//.//}"
NEW_PATH="${PKG//.//}"
# 1. Remove the example module you don't need
rm -rf "features/$DROP"
perl -ni -e 'print unless /$ENV{DROP_RE}/' \
settings.gradle.kts worker/build.gradle.kts .github/workflows/build-module.yml
perl -ni -e 'print unless /$ENV{DROP_PLUGIN}/' settings.gradle.kts
perl -0pi -e 's/^ *- module: features:$ENV{DROP_RE}\n(?: +publish_\w+: \w+\n)+//m' \
.github/workflows/on-release.yml
# 2. Rename the module, package folders and chart folder
mv "features/$KEEP" "features/$REPO"
for d in src/main/kotlin src/main/java src/main/resources src/test/kotlin src/test/java; do
src="features/$REPO/$d/$OLD_PATH"
if [ -d "$src" ]; then
mkdir -p "features/$REPO/$d/$(dirname "$NEW_PATH")"
mv "$src" "features/$REPO/$d/$NEW_PATH"
fi
done
find "features/$REPO" -type d -empty -delete
mv charts/continuum-feature-template "charts/$REPO"
# 3. Replace the template's names inside files
find . \( -name .git -o -name .gradle -o -name .kotlin -o -name build -o -name .idea \
-o -path ./docker -o -path ./gradle \) -prune -o -type f ! -name 'gradlew*' -print0 |
xargs -0 perl -pi -e '
s{org\.projectcontinuum\.feature\.example(\.java)?}{$ENV{PKG}}g;
s{projectcontinuum/continuum-feature-template}{$ENV{IMAGE}}g;
s{projectcontinuum-org/continuum-feature-template}{$ENV{ORG}/$ENV{REPO}}g;
s{continuum-feature-hello(-java)?}{$ENV{REPO}}g;
s{continuum-feature-template}{$ENV{REPO}}g;
s{CONTINUUM_FEATURE_TEMPLATE_TASK_QUEUE}{$ENV{TASK_QUEUE}}g;
s{featureTemplate}{$ENV{VALUES_KEY}}g;
s{feature-template}{$ENV{SHORT}}g;
'
perl -pi -e 's{org\.projectcontinuum\.app\.worker\.example}{$ENV{PKG}.app.worker}g' worker/build.gradle.kts
echo "Done. Still to do by hand: the description lines in build.gradle.kts and Chart.yaml, and README.md."
echo "Leftovers (expect none):"
grep -rIn "feature-template\|featureTemplate\|FEATURE_TEMPLATE\|feature\.example\|feature-hello" \
--exclude-dir=.git --exclude-dir=.gradle --exclude-dir=.kotlin --exclude-dir=build . || true
When it finishes, the "Leftovers" list at the end of its output should be empty. Then finish by hand:
- The
descriptionlines infeatures/<repo>/build.gradle.kts,worker/build.gradle.ktsandcharts/<repo>/Chart.yaml. The script renames words but can't rewrite a sentence. -
README.md,CONTRIBUTING.mdandAGENTS.md: the script fixes names and links, but the text still describes the template (badges, the "Ownership" list inAGENTS.md, and so on). Rewrite what no longer applies.
Skip ahead to Check for leftovers.
Option B: The manual checklistβ
Work through this in order and commit when the build is green. <example-module> below means the module you keep: continuum-feature-hello (Kotlin) or continuum-feature-hello-java (Java).
1. Project identityβ
-
settings.gradle.kts: setrootProject.name = "<repo>". -
gradle.properties: setrepoName=<org>/<repo>. Leave the version lines as they are.
2. Remove the example you don't needβ
- Delete the other module's folder under
features/. - Remove its
include(...)line fromsettings.gradle.kts. - Remove its
implementation(project(...))line fromworker/build.gradle.kts. -
settings.gradle.ktsalso declares the Gradle plugins inpluginManagement { plugins { β¦ } }. Remove theid("org.projectcontinuum.feature-java")line if you keep Kotlin, or theid("org.projectcontinuum.feature")line if you keep Java. -
.github/workflows/on-release.yml: delete its- module:entry in the matrix, including thepublish_*lines under it. -
.github/workflows/build-module.yml: delete its line in theoptions:list.
3. The feature moduleβ
Rename the folder features/<example-module>/ to features/<repo>/ and then:
-
settings.gradle.kts: changeinclude(":features:<example-module>")toinclude(":features:<repo>"). -
features/<repo>/build.gradle.kts: changegroupto<package>and rewritedescription. - Rename the package folders under
src/main/kotlin(orsrc/main/java),src/test/β¦andsrc/main/resources. The old path isorg/projectcontinuum/feature/examplefor Kotlin andorg/projectcontinuum/feature/example/javafor Java. Replace it with your<package>path. Update thepackageline in every file you moved. -
AutoConfigure.kt(orAutoConfigure.java): update thebasePackagesvalue in@ComponentScanto<package>. -
META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports: change the line to<package>.AutoConfigure.
In IntelliJ, use Refactor β Rename on the package and module folders. It updates package lines and imports for you. You still have to edit basePackages, the .imports file and the Gradle files by hand.
4. The workerβ
-
worker/build.gradle.kts:implementation(project(":features:<repo>"))must point at your renamed module.- Change
jibToImageto the image you will publish, for example<org>/<repo>:${project.version}. - Change
groupanddescription.
-
worker/src/main/resources/application.yaml:spring.application.nameβ<repo>-worker- the default of
node-task-queueβ<TASK_QUEUE> - the
org.projectcontinuum.feature.examplelog level β<package>
5. The Helm chartβ
The chart folder, its helper templates and its values keys all carry the template's name. Replace them together or Helm will fail with "template not found".
- Rename
charts/continuum-feature-template/tocharts/<repo>/. -
Chart.yaml: changename,descriptionandhome. -
values.yamlandvalues-dev.yaml:- the
featureTemplate:key β<valuesKey> image.repositoryβ your image fromjibToImagetaskQueueβ<TASK_QUEUE>(the same value as inapplication.yaml)
- the
-
templates/*.yaml,templates/_helpers.tplandtemplates/NOTES.txt: replace everycontinuum-feature-templatewith<repo>, every.featureTemplate.with.<valuesKey>., and thefeature-templatecomponent label with your own. -
Chart.yamlappVersionmust equalfeatureVersioningradle.properties(both0.0.1as shipped).
6. CI and release workflowsβ
-
.github/workflows/on-release.yml: update themodule:entry for your module in the matrix. -
.github/workflows/build-module.yml: update theoptions:list to your module name.
7. Text filesβ
-
README.md,CONTRIBUTING.mdandAGENTS.md: replace the template's name, badges, links and descriptions.
Check for leftoversβ
Run this from the repository root. It prints nothing when every rename is done:
grep -rIn "feature-template\|featureTemplate\|FEATURE_TEMPLATE\|feature\.example\|feature-hello" \
--exclude-dir=.git --exclude-dir=.gradle --exclude-dir=.kotlin --exclude-dir=build .
Any line it prints is a missed rename. (AGENTS.md and README.md are the files most often missed.)
Then confirm nothing broke:
./gradlew build
If you changed the chart, also run helm lint charts/<repo>.
At this point the build contains the template's Hello World node under your name. That's expected: you replace it in the next step.
Before you move onβ
- The module folder, the
include(...)line insettings.gradle.ktsand theimplementation(project(...))line inworker/build.gradle.ktsall use the same module name. - The
.importsfile names your realAutoConfigureclass. -
node-task-queueinapplication.yamlequalstaskQueuein the chart'svalues.yaml. -
featureVersioningradle.propertiesequalsappVersioninChart.yaml. - The leftover grep above prints nothing.
-
./gradlew buildpasses, andhelm lint charts/<repo>passes.
You can postpone the Helm chart and the workflow files until you are ready to deploy (Step 6). The build, tests and local run only need the project, module and worker sections. If you postpone them, the leftover grep will still report the chart and workflows.
Next: write your node.