From 73cd0eb06b5edd0042a2bf0df790b4a3c7f65534 Mon Sep 17 00:00:00 2001 From: Tuguberk Date: Tue, 12 May 2026 13:34:32 +0300 Subject: [PATCH] Replace deprecated Jar.classifier with archiveClassifier The Jar task property `classifier` was deprecated in Gradle 5.1 and removed in Gradle 7.0. Builds using Gradle 7+ fail with: Could not set unknown property 'classifier' for task ':idl-parser:sourceJar' of type org.gradle.api.tasks.bundling.Jar. Replace both usages with the current `archiveClassifier` property, which has been available since Gradle 5.1 and is the supported API going forward. This unblocks projects that depend on IDL-Parser (e.g. Fast-DDS-Gen) from upgrading their Gradle wrapper to 7.x or later. Signed-off-by: Tuguberk --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 3422e19..aba3dd6 100644 --- a/build.gradle +++ b/build.gradle @@ -71,7 +71,7 @@ jar { } task sourceJar(type: Jar, dependsOn: classes) { - classifier = 'sources' + archiveClassifier = 'sources' from sourceSets.main.allJava } @@ -91,7 +91,7 @@ publishing { from components.java artifact sourceJar { - classifier 'sources' + archiveClassifier = 'sources' } } }