Template Customization
When you use the Starter Gradle template, you likely want to adapt it to your own project and organization. This guide covers the essential steps to make it yours.
Project Identity
Section titled “Project Identity”The first step is to rename the project and update its group and version.
Rename the project
Section titled “Rename the project”Update the rootProject.name in settings.gradle.kts:
rootProject.name = "your-project-name"Update group and version
Section titled “Update group and version”Modify the following properties in gradle.properties:
GROUP=com.yourcompanyVERSION=1.0.0-SNAPSHOTMaven/POM Metadata
Section titled “Maven/POM Metadata”If you plan to publish your project to a Maven repository, you should update the metadata in gradle.properties:
POM_DEVELOPER_NAME=Your NamePOM_URL=https://github.com/youruser/your-projectPOM_SCM_CONNECTION=scm:git:https://github.com/youruser/your-project.gitPackage Renaming
Section titled “Package Renaming”The template uses com.profiletailors as the base package. You should rename this to match your project’s group.
- Move files in
app/src/main/kotlin/com/profiletailors/appto your desired package structure. - Update the
packagedeclaration in all source files. - Repeat for modules in the
examples/directory if you keep them.
Documentation Site
Section titled “Documentation Site”The documentation site is built with Starlight. Customize it in docs/website/astro.config.mjs:
site: Your production URL.base: The subpath if not hosted at the root (e.g.,/your-project).starlight.title: The title of your documentation.social: Links to your repository or social media.
License
Section titled “License”The template is licensed under the MIT License.
- Update the
LICENSEfile with your name/organization and year. - Update
POM_LICENSE_URLingradle.propertiesif you change the license.
CI/CD and GitHub Integration
Section titled “CI/CD and GitHub Integration”If you are using GitHub Actions:
- Review
.github/workflows/and update any references todallay/common-actionsif you wish to use your own shared workflows. - Update
.github/CODEOWNERSto reflect the maintainers of your project. - Update the
README.mdbadges and links.