Skip to content

What is the current way of getting to a working build? #3

Description

@Sch3lp

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.

  1. Start the dockerized PostgreSQL using docker-compose with the db/docker-compose.yml file.
  2. Run ./gradlew flywayMigrate (by default it uses your postgres running at 5433, aka the test database).
  3. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions