When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
Please note we have a code of conduct, please follow it in all your interactions with the project.
- Ensure any installation or build dependencies are removed before the end of the layer when doing a build.
- Update the
README.mdwith details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters. - Increase the version numbers in any example files and the
README.mdto the new version that this Pull Request would represent. The versioning scheme we use is SemVer. - You may merge the Pull Request in once you have the sign-off of at least one other developer.
For further reference, please consider the following sections:
- You will need to add a Testcontainers-based implementation of your database container:
- Your class needs to be in
io.github.suppierk.codegen.dockerpackage. - Your class has to implement
io.github.suppierk.codegen.docker.AbstractDatabaseContainerinterface. - RECOMMENDED: take a look at
io.github.suppierk.codegen.docker.PostgreSQLimplementation.
- Your class needs to be in
- Wire the new driver inside
io.github.suppierk.codegen.extensions.GeneratorExtension.DatabaseExtension:- Provide a sensible default Testcontainers image for the driver.
- Extend
createDatabaseContainer/supportsDriverClassNamehandling to return your container implementation.
- Update the artifact version ONLY in
plugin/build.gradle. - Update
README.mdconfiguration section to reference how to override the container image for your database.
The command typically used to build the project is:
./gradlew clean :plugin:clean
./gradlew spotlessApply :plugin:build build