Skip to content

Commit 3a0e33e

Browse files
authored
fix: add javadocElements back into module (#247)
This works around vanniktech/gradle-maven-publish-plugin#1028 by making sure we use `com.vanniktech.maven.publish.base` and creating our own publication.
1 parent 4e216f4 commit 3a0e33e

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

buildSrc/src/main/groovy/io.deephaven.csv.java-publishing-conventions.gradle

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
plugins {
22
id 'java'
33
id 'signing'
4-
id 'com.vanniktech.maven.publish'
4+
id 'com.vanniktech.maven.publish.base'
55
}
66

77
java {
8-
// https://github.com/vanniktech/gradle-maven-publish-plugin/issues/1028
9-
// withSourcesJar()
10-
// withJavadocJar()
8+
withSourcesJar()
9+
withJavadocJar()
1110
}
1211

1312
def developerId = 'deephaven'
@@ -28,6 +27,14 @@ def scmUrl = 'https://github.com/deephaven/deephaven-csv'
2827
def scmConnection = 'scm:git:git://github.com/deephaven/deephaven-csv.git'
2928
def scmDevConnection = 'scm:git:ssh://github.com/deephaven/deephaven-csv.git'
3029

30+
publishing {
31+
publications {
32+
mavenJava(MavenPublication) {
33+
from components.java
34+
}
35+
}
36+
}
37+
3138
mavenPublishing {
3239
publishToMavenCentral()
3340
signAllPublications()

0 commit comments

Comments
 (0)