diff --git a/build.gradle b/build.gradle index a72af3b2b7..1009ed2b26 100644 --- a/build.gradle +++ b/build.gradle @@ -17,13 +17,6 @@ buildscript { because "required until dokka plugin updates it's internal version of jsoup, not fixed as of dokka 1.7.10" } } - - classpath "org.apache.avro:avro:$avroVersion" - constraints { - classpath("org.apache.commons:commons-compress:$commonsCompressVersion") { - because "CVE-2023-42503, current version of Avro uses an outdated version" - } - } } } diff --git a/data/avro-schema/build.gradle b/data/avro-schema/build.gradle index 96f1e3dded..5708c8e9c0 100644 --- a/data/avro-schema/build.gradle +++ b/data/avro-schema/build.gradle @@ -27,6 +27,13 @@ dependencies { compileOnly 'org.osgi:osgi.annotation' } +configurations.all { + resolutionStrategy { + // CVE-2023-42503, current version of Avro uses an outdated version + force "org.apache.commons:commons-compress:$commonsCompressVersion" + } +} + description 'Data Model Definitions' def generatedAvroDir = layout.buildDirectory.dir('generated-avro')