Skip to content

querydsl-jpa-spring and querydsl-ksp-codegen are missing from querydsl-bom #1605

Description

@comstering

Important Notice

Thank you for opening an issue! Please note that, as outlined in the README, I currently only work on feature requests or bug fixes when sponsored. Balancing this project with professional and personal priorities means I have a very limited amount of effort I can divert to this project.

You must put in the work to address this issue, or it won't be addressed.

  • I am willing to put in the work and submit a PR to resolve this issue.

Describe the bug
A clear and concise description of what the bug is.

I am trying to use the new querydsl-jpa-spring module within a Gradle project using the Version Catalog and BOM (Bill of Materials).
While querydsl-jpa resolves correctly through the BOM, querydsl-jpa-spring fails to resolve unless a version is explicitly provided. It appears that querydsl-jpa-spring is not managed under the current querydsl-bom.

To Reproduce
Steps to reproduce the behavior:

  1. Define the Version Catalog in libs.versions.toml:
[libraries]
querydsl-bom = { module = "io.github.openfeign.querydsl:querydsl-bom", version.ref = "querydsl" }
querydsl-jpa = { module = "io.github.openfeign.querydsl:querydsl-jpa" }
querydsl-jpa-spring = { module = "io.github.openfeign.querydsl:querydsl-jpa-spring" }
querydsl-ksp-codegen = { module = "io.github.openfeign.querydsl:querydsl-ksp-codegen" }

[bundles]
querydsl = [ "querydsl-jpa", "querydsl-jpa-spring" ]
  1. Apply dependencies in build.gradle.kts:
dependencies {
    implementation(platform(catalog.querydsl.bom))
    implementation(libs.bundles.querydsl)
    ksp(libs.querydsl.ksp.codegen)
}
  1. Run Gradle sync (e.g., in IntelliJ IDEA).
  2. See error Could not find io.github.openfeign.querydsl:querydsl-jpa-spring:.

Expected behavior
A clear and concise description of what you expected to happen.

The querydsl-jpa-spring and querydsl-ksp-codegen modules should be managed by the querydsl-bom so that they can be resolved without an explicit version reference in the catalog, like so:

# This is the current workaround, but it should not be necessary if they are in the BOM
querydsl-bom = { module = "io.github.openfeign.querydsl:querydsl-bom", version.ref = "querydsl" }
querydsl-jpa = { module = "io.github.openfeign.querydsl:querydsl-jpa" }
querydsl-jpa-spring = { module = "io.github.openfeign.querydsl:querydsl-jpa-spring", version.ref = "querydsl" }
querydsl-ksp-codegen = { module = "io.github.openfeign.querydsl:querydsl-ksp-codegen", version.ref = "querydsl" }

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions