@@ -32,15 +32,68 @@ task sourcesJar(type: Jar, dependsOn: classes) {
3232 from sourceSets. main. allJava
3333}
3434
35+ task javadocJar (type : Jar , dependsOn : javadoc) {
36+ classifier = ' javadoc'
37+ from javadoc. destinationDir
38+ }
39+
40+ Node pomCustomizations = new NodeBuilder (). project {
41+ name ' marklogic-data-hub-api'
42+ packaging ' jar'
43+ textdescription ' Library for Creating an Operational Data Hub on MarkLogic'
44+ url ' https://github.com/marklogic/marklogic-data-hub'
45+
46+ scm {
47+ url
' [email protected] :marklogic/marklogic-data-hub.git' 48+ connection
' scm:[email protected] :marklogic/marklogic-data-hub.git' 49+ developerConnection
' scm:[email protected] :marklogic/marklogic-data-hub.git' 50+ }
51+
52+ licenses {
53+ license {
54+ name ' The Apache Software License, Version 2.0'
55+ url ' http://www.apache.org/licenses/LICENSE-2.0.txt'
56+ }
57+ }
58+
59+ developers {
60+ developer {
61+ name ' MarkLogic'
62+ 63+ organization ' MarkLogic'
64+ organizationUrl ' https://www.marklogic.com'
65+ }
66+ developer {
67+ name ' MarkLogic Github Contributors'
68+ 69+ organization ' Github Contributors'
70+ organizationUrl ' https://github.com/marklogic/marklogic-data-hub/graphs/contributors'
71+ }
72+ }
73+ }
3574publishing {
3675 publications {
37- mainJava (MavenPublication ) {
76+ main (MavenPublication ) {
3877 from components. java
78+
79+ pom. withXml {
80+ asNode(). appendNode(' description' , pomCustomizations. textdescription. text())
81+ asNode(). append(pomCustomizations. developers)
82+ asNode(). append(pomCustomizations. name)
83+ asNode(). append(pomCustomizations. packaging)
84+ asNode(). append(pomCustomizations. url)
85+ asNode(). append(pomCustomizations. scm)
86+ asNode(). append(pomCustomizations. licenses)
87+ }
88+
3989 }
4090 sourcesJava(MavenPublication ) {
4191 from components. java
4292 artifact sourcesJar
93+
94+
4395 }
96+
4497 }
4598 repositories {
4699 maven {
0 commit comments