Skip to content

Commit aea74dc

Browse files
SameeraPriyathamTadikondaMarkLogic Builder
authored andcommitted
DEVO-350: add publishing task to installer-for-dhs module
1 parent 2679ff6 commit aea74dc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

installer-for-dhs/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id "java-library"
33
id 'com.github.johnrengelman.shadow' version '5.2.0'
44
id "io.snyk.gradle.plugin.snykplugin" version "0.4"
5+
id 'maven-publish'
56
}
67

78
group = 'com.marklogic'
@@ -54,5 +55,24 @@ task installDhfIntoDhs(type: Exec) {
5455
}
5556
installDhfIntoDhs.dependsOn jar
5657

58+
publishing {
59+
publications {
60+
maven(MavenPublication) {
61+
artifact("build/libs/marklogic-data-hub-$version-installer"+".jar")
62+
//artifactId = 'installer-for-dhs'
63+
}
64+
}
65+
repositories {
66+
maven {
67+
if (project.hasProperty("mavenUser")) {
68+
credentials {
69+
username mavenUser
70+
password mavenPassword
71+
}
72+
}
73+
url publishUrl
74+
}
75+
}
5776

77+
}
5878

0 commit comments

Comments
 (0)