Is there a way to import a dependency with provided scope?

I found two questions which are related to mine:

Am I right that Gradle 7.5.1 won’t import transitive dependencies if their scope is provided? For example, I have the following dependency

    implementation("io.delta:delta-standalone_2.13:0.5.0")
    implementation("org.apache.hadoop:hadoop-client")
    implementation("org.apache.parquet:parquet-hadoop")

hadoop-client and parquet-hadoop won’t be resolved. Is there a way (with a minimal amount of scripting) to automatically resolve the version of those dependencies from provided scope?

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.parquet</groupId>
<artifactId>parquet-hadoop</artifactId>
<version>1.12.0</version>
<scope>provided</scope>
</dependency>

Gradle does it like Maven and ignores provided and optional dependencies when resolving versions.
I’m not aware of an easy way to take that version.

Yes. You are right. I checked Maven behaviour and it doesn’t import provided dependencies. I thought it would. Probably those were my wrong memories. I didn’t use Maven for a while.