From c6bc129a2933ec1a6ee2f986c28e62c7c7de6b5e Mon Sep 17 00:00:00 2001 From: Rob Rudin Date: Wed, 23 Oct 2024 14:31:15 -0400 Subject: [PATCH] Fixing internal publishing --- build.gradle | 22 ---------------------- marklogic-junit5/build.gradle | 19 +++++++++++++++++++ marklogic-unit-test-client/build.gradle | 19 +++++++++++++++++++ marklogic-unit-test-modules/build.gradle | 19 +++++++++++++++++++ 4 files changed, 57 insertions(+), 22 deletions(-) diff --git a/build.gradle b/build.gradle index 86ba24f..6825859 100644 --- a/build.gradle +++ b/build.gradle @@ -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 - } - } - } - } - } } diff --git a/marklogic-junit5/build.gradle b/marklogic-junit5/build.gradle index 41ca0c4..1a1dbd3 100644 --- a/marklogic-junit5/build.gradle +++ b/marklogic-junit5/build.gradle @@ -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 + } + } + } + } } diff --git a/marklogic-unit-test-client/build.gradle b/marklogic-unit-test-client/build.gradle index abfeb5c..16bc670 100644 --- a/marklogic-unit-test-client/build.gradle +++ b/marklogic-unit-test-client/build.gradle @@ -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) { diff --git a/marklogic-unit-test-modules/build.gradle b/marklogic-unit-test-modules/build.gradle index 4f67cc5..1642ba3 100644 --- a/marklogic-unit-test-modules/build.gradle +++ b/marklogic-unit-test-modules/build.gradle @@ -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 + } + } + } + } }