Skip to content

Commit 3c8413b

Browse files
committed
Add provided dependency section to ml-client POM
Signed-off-by: Daniel Widdis <[email protected]>
1 parent 1db44b4 commit 3c8413b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

client/build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,22 @@ publishing {
117117
url = "https://github.com/opensearch-project/ml-commons"
118118
}
119119
}
120+
// Add a dependencies section to signal that consumers of the client need to provide these
121+
withXml {
122+
def dependencies = asNode().appendNode('dependencies')
123+
124+
def addProvidedDependency = { group, artifact, version ->
125+
def dependency = dependencies.appendNode('dependency')
126+
dependency.appendNode('groupId', group)
127+
dependency.appendNode('artifactId', artifact)
128+
dependency.appendNode('version', version)
129+
dependency.appendNode('scope', 'provided')
130+
}
131+
132+
addProvidedDependency('org.json', 'json', '20231013')
133+
addProvidedDependency('com.jayway.jsonpath', 'json-path', '2.9.0')
134+
addProvidedDependency('org.apache.commons', 'commons-text', '1.10.0')
135+
}
120136
}
121137
}
122138

0 commit comments

Comments
 (0)