diff --git a/src/adapter/outbound/persistence-jpa/build.gradle b/src/adapter/outbound/persistence-jpa/build.gradle index 2484ee71..b5561784 100644 --- a/src/adapter/outbound/persistence-jpa/build.gradle +++ b/src/adapter/outbound/persistence-jpa/build.gradle @@ -93,10 +93,16 @@ dependencies { // contracts, but the Stable runtime classpath must not carry either. compileOnly keeps them off // every deployment while still compiling the support classes; a deployment that opts in adds the // artifact itself, and the guards refuse the capability when the classes are absent. - compileOnly 'com.querydsl:querydsl-jpa:5.1.0:jakarta' + // + // Querydsl: the platform's support (`querydsl.PredicatePolicy`) uses only querydsl-core's + // `Predicate`, so querydsl-core is what this leaf compiles against (version from the Boot BOM). + // querydsl-jpa, which builds the JPAQuery a service runs, stays the opting-in deployment's own + // dependency: `com.querydsl:querydsl-jpa` carries CVE-2024-49203 (HQL injection through orderBy) + // and has no fixed release under that coordinate. + compileOnly 'com.querydsl:querydsl-core' compileOnly 'org.hibernate.orm:hibernate-envers' - testImplementation 'com.querydsl:querydsl-jpa:5.1.0:jakarta' + testImplementation 'com.querydsl:querydsl-core' testImplementation 'org.hibernate.orm:hibernate-envers' testImplementation libs.archunit.junit5 // FlywaySchemaPolicyTest reads the PostgreSQL lock setting FlywaySchemaPolicy hands Flyway. Test diff --git a/src/adapter/outbound/persistence-jpa/gradle.lockfile b/src/adapter/outbound/persistence-jpa/gradle.lockfile index e31f8e6c..ace35092 100644 --- a/src/adapter/outbound/persistence-jpa/gradle.lockfile +++ b/src/adapter/outbound/persistence-jpa/gradle.lockfile @@ -40,7 +40,6 @@ com.jayway.jsonpath:json-path:2.10.0=jpaPlatformPerformanceTestCompileClasspath, com.mysema.commons:mysema-commons-lang:0.2.4=compileClasspath,jpaPlatformPerformanceTestCompileClasspath,jpaPlatformPerformanceTestRuntimeClasspath,postgresqlIntegrationTestCompileClasspath,postgresqlIntegrationTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath com.puppycrawl.tools:checkstyle:13.5.0=checkstyle com.querydsl:querydsl-core:5.1.0=compileClasspath,jpaPlatformPerformanceTestCompileClasspath,jpaPlatformPerformanceTestRuntimeClasspath,postgresqlIntegrationTestCompileClasspath,postgresqlIntegrationTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath -com.querydsl:querydsl-jpa:5.1.0=compileClasspath,jpaPlatformPerformanceTestCompileClasspath,jpaPlatformPerformanceTestRuntimeClasspath,postgresqlIntegrationTestCompileClasspath,postgresqlIntegrationTestRuntimeClasspath,testCompileClasspath,testRuntimeClasspath com.sun.istack:istack-commons-runtime:4.1.2=jpaPlatformPerformanceTestRuntimeClasspath,postgresqlIntegrationTestRuntimeClasspath,runtimeClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath com.tngtech.archunit:archunit-junit5-api:1.3.0=jpaPlatformPerformanceTestCompileClasspath,jpaPlatformPerformanceTestRuntimeClasspath,postgresqlIntegrationTestCompileClasspath,postgresqlIntegrationTestRuntimeClasspath,testCompileClasspath,testFixturesCompileClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath com.tngtech.archunit:archunit-junit5-engine-api:1.3.0=jpaPlatformPerformanceTestRuntimeClasspath,postgresqlIntegrationTestRuntimeClasspath,testFixturesRuntimeClasspath,testRuntimeClasspath