[ 
https://issues.apache.org/jira/browse/THRIFT-5671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17691488#comment-17691488
 ] 

Zlika commented on THRIFT-5671:
-------------------------------

I tried to fix the problem but I'm new to Gradle and it's a complete mess 
compared to Maven.

As far as I understand, the problem is in file publish.gradle.

The dependencies are correctly added to the pom if we remove the "artifact 
jar/artifact sourcesJar/artifact javadocJar" lines and add "from 
components.java" instead. But in this case it also publishes another jar file 
(cf. comment in the file : "explicitly set 3 jars because calling "from 
components.java" will include shadow jar which isn't what we want"). If we keep 
the 3 "artifact ..." lines I don't know how to make gradle add the dependencies 
in the generated pom.

> libthrift 0.17.0 has no dependencies in POM on central
> ------------------------------------------------------
>
>                 Key: THRIFT-5671
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5671
>             Project: Thrift
>          Issue Type: Bug
>          Components: Java - Library
>    Affects Versions: 0.17.0
>            Reporter: Karsten Spang
>            Priority: Major
>
> The 
> [libthrift-0.17.0.pom|https://repo1.maven.org/maven2/org/apache/thrift/libthrift/0.17.0/libthrift-0.17.0.pom]
>  file downloaded from Maven Central does not have any <dependencies> section. 
> Thus, the transitive dependencies are not included in my build.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to