File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,22 @@ publishing {
117
117
url = " https://github.com/opensearch-project/ml-commons"
118
118
}
119
119
}
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
+ }
120
136
}
121
137
}
122
138
You can’t perform that action at this time.
0 commit comments