Here's a suggestion for a CONTRIBUTING.md file:
Contributing
Prerequisites
- install docker
- install JDK (currently 19)
Before you run ./gradlew build
Since this project uses jOOQ's generated classes we'll first need to generate those.
jOOQ requires a database connection to do so, and to make sure the whole team has the same database schema to generate the jOOQ classes from, we use Flyway to perform database migrations.
- Start the dockerized PostgreSQL using docker-compose with the db/docker-compose.yml file.
- Run
./gradlew flywayMigrate (by default it uses your postgres running at 5433, aka the test database).
- Run
./gradlew generateJooq
This should generate classes in build/generated-src/jooq/main under a package of com.gildedrose.db
That last part is not working for me however.
I have a running database, and I can see the items table that was created because of the flyway migration.
But when I run generateJooq, I don't get any generated classes.
What am I still doing wrong?
Here's a suggestion for a
CONTRIBUTING.mdfile:Contributing
Prerequisites
Before you run ./gradlew build
Since this project uses jOOQ's generated classes we'll first need to generate those.
jOOQ requires a database connection to do so, and to make sure the whole team has the same database schema to generate the jOOQ classes from, we use Flyway to perform database migrations.
./gradlew flywayMigrate(by default it uses your postgres running at 5433, aka the test database)../gradlew generateJooqThis should generate classes in
build/generated-src/jooq/mainunder a package ofcom.gildedrose.dbThat last part is not working for me however.
I have a running database, and I can see the items table that was created because of the flyway migration.
But when I run generateJooq, I don't get any generated classes.
What am I still doing wrong?