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.md
with 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.md
to 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.docker
package. - Your class has to implement
io.github.suppierk.codegen.docker.DatabaseContainer
interface. - RECOMMENDED: take a look at
io.github.suppierk.codegen.docker.PostgreSQL
implementation.
- Your class needs to be in
- You should add your new class to
io.github.suppierk.codegen.GeneratorExtension
:- Add constant with default Docker image tag.
- Add the way to get your database container by database driver name.
- Update the artifact version ONLY in
plugin/build.gradle
. - Update
README.md
configuration section to reference a new option to set Docker image for your database.
The command typically used to build the project is:
./gradlew clean :plugin:clean
./gradlew spotlessApply :plugin:build build