Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 20301

Dependency resolution on pom file with jdk version activated profile

$
0
0

Hello,

I came across an issue with dependency resolution. When dependencies are declared in pom inside profile block which is activated based on jdk version.
To be concrete it is this pom: https://repository.apache.org/content/groups/public/org/apache/cxf/cxf-parent/3.3.4/cxf-parent-3.3.4.pom
even when i have compilation set to java 11 dependencies in the bottom like
org.apache.geronimo.specs
geronimo-jta_1.1_spec
are not added to runtime classpath.
Is there any easy way how to tell gradle to also activate these profiles according to java version?
I found out about this problem by accident because I am migrating project from maven to gradle and I was comparing all resolved dependencies and I noticed these are missing. And I would like to prevent similar issues in the future due to missing dependencies.
I am using Gradle 6.0.1

Thanks.


Viewing all articles
Browse latest Browse all 20301

Trending Articles