Skip to content

Commit c6bc129

Browse files
committed
Fixing internal publishing
1 parent 9130612 commit c6bc129

File tree

4 files changed

+57
-22
lines changed

4 files changed

+57
-22
lines changed

build.gradle

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,4 @@ subprojects {
3131
javadoc.failOnError = false
3232
// Ignores warnings on params that don't have descriptions, which is a little too noisy
3333
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
34-
35-
publishing {
36-
repositories {
37-
maven {
38-
if (project.hasProperty("mavenUser")) {
39-
credentials {
40-
username mavenUser
41-
password mavenPassword
42-
}
43-
url publishUrl
44-
allowInsecureProtocol = true
45-
} else {
46-
name = "central"
47-
url = mavenCentralUrl
48-
credentials {
49-
username mavenCentralUsername
50-
password mavenCentralPassword
51-
}
52-
}
53-
}
54-
}
55-
}
5634
}

marklogic-junit5/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,23 @@ publishing {
5454
}
5555
}
5656
}
57+
repositories {
58+
maven {
59+
if (project.hasProperty("mavenUser")) {
60+
credentials {
61+
username mavenUser
62+
password mavenPassword
63+
}
64+
url publishUrl
65+
allowInsecureProtocol = true
66+
} else {
67+
name = "central"
68+
url = mavenCentralUrl
69+
credentials {
70+
username mavenCentralUsername
71+
password mavenCentralPassword
72+
}
73+
}
74+
}
75+
}
5776
}

marklogic-unit-test-client/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,25 @@ publishing {
5454
}
5555
}
5656
}
57+
repositories {
58+
maven {
59+
if (project.hasProperty("mavenUser")) {
60+
credentials {
61+
username mavenUser
62+
password mavenPassword
63+
}
64+
url publishUrl
65+
allowInsecureProtocol = true
66+
} else {
67+
name = "central"
68+
url = mavenCentralUrl
69+
credentials {
70+
username mavenCentralUsername
71+
password mavenCentralPassword
72+
}
73+
}
74+
}
75+
}
5776
}
5877

5978
task createHttpCredentials(type: com.marklogic.gradle.task.MarkLogicTask) {

marklogic-unit-test-modules/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,23 @@ publishing {
6262
artifact modulesJar
6363
}
6464
}
65+
repositories {
66+
maven {
67+
if (project.hasProperty("mavenUser")) {
68+
credentials {
69+
username mavenUser
70+
password mavenPassword
71+
}
72+
url publishUrl
73+
allowInsecureProtocol = true
74+
} else {
75+
name = "central"
76+
url = mavenCentralUrl
77+
credentials {
78+
username mavenCentralUsername
79+
password mavenCentralPassword
80+
}
81+
}
82+
}
83+
}
6584
}

0 commit comments

Comments
 (0)