THRIFT-5671: return dependencies to POM (#2782)

Client: ["java"]
This commit is contained in:
Artemy 2023-07-05 10:43:57 +03:00 committed by GitHub
parent b2c5805b40
commit 774b824ef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,14 +43,16 @@ java {
withSourcesJar()
}
// skip shadow jar from publishing. Workaround for https://github.com/johnrengelman/shadow/issues/651
components.java.withVariantsFromConfiguration(configurations.shadowRuntimeElements) {
skip()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = "libthrift"
// explicitly set 3 jars because calling "from components.java" will include shadow jar which isn't what we want
artifact jar
artifact sourcesJar
artifact javadocJar
from components.java
pom {
name = 'Apache Thrift'
description = 'Thrift is a software framework for scalable cross-language services development.'