Skip to content

Commit

Permalink
Fixing internal publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrudin committed Oct 23, 2024
1 parent 9130612 commit c6bc129
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 22 deletions.
22 changes: 0 additions & 22 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,4 @@ subprojects {
javadoc.failOnError = false
// Ignores warnings on params that don't have descriptions, which is a little too noisy
javadoc.options.addStringOption('Xdoclint:none', '-quiet')

publishing {
repositories {
maven {
if (project.hasProperty("mavenUser")) {
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}
}
19 changes: 19 additions & 0 deletions marklogic-junit5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,23 @@ publishing {
}
}
}
repositories {
maven {
if (project.hasProperty("mavenUser")) {
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}
19 changes: 19 additions & 0 deletions marklogic-unit-test-client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,25 @@ publishing {
}
}
}
repositories {
maven {
if (project.hasProperty("mavenUser")) {
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}

task createHttpCredentials(type: com.marklogic.gradle.task.MarkLogicTask) {
Expand Down
19 changes: 19 additions & 0 deletions marklogic-unit-test-modules/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,23 @@ publishing {
artifact modulesJar
}
}
repositories {
maven {
if (project.hasProperty("mavenUser")) {
credentials {
username mavenUser
password mavenPassword
}
url publishUrl
allowInsecureProtocol = true
} else {
name = "central"
url = mavenCentralUrl
credentials {
username mavenCentralUsername
password mavenCentralPassword
}
}
}
}
}

0 comments on commit c6bc129

Please sign in to comment.