@@ -22,7 +22,7 @@ plugins {
22
22
id ' signing'
23
23
}
24
24
25
- group ' org.opensearch.client '
25
+ group ' org.opensearch.driver '
26
26
27
27
// keep version in sync with version in Driver source
28
28
version ' 2.0.0.0'
@@ -89,7 +89,7 @@ tasks.withType(JavaCompile) {
89
89
}
90
90
91
91
static def getShadowPath (String path ) {
92
- return ' com.amazonaws .opensearch.sql.jdbc.shadow.' + path
92
+ return ' org .opensearch.sql.jdbc.shadow.' + path
93
93
}
94
94
95
95
shadowJar {
@@ -107,10 +107,7 @@ shadowJar {
107
107
exclude ' META-INF/NOTICE*'
108
108
exclude ' META-INF/DEPENDENCIES'
109
109
110
- relocate(' com.amazonaws' , getShadowPath(' com.amazonaws' )) {
111
- exclude ' com.amazonaws.opensearch.*/**'
112
- }
113
-
110
+ relocate ' com.amazonaws' , getShadowPath(' com.amazonaws' )
114
111
relocate ' org.apache' , getShadowPath(' org.apache' )
115
112
relocate ' org.joda' , getShadowPath(' org.joda' )
116
113
relocate ' com.fasterxml' , getShadowPath(' com.fasterxml' )
@@ -139,47 +136,59 @@ publishing {
139
136
artifact javadocJar
140
137
141
138
pom {
142
- name = " OpenSearch SQL JDBC Driver"
143
- packaging = " jar"
144
- url = " https://github.com/opensearch-project/sql-jdbc"
145
- description = " OpenSearch SQL JDBC driver"
146
- scm {
147
- connection
= " scm:[email protected] :opensearch-project/sql-jdbc.git"
148
- developerConnection
= " scm:[email protected] :opensearch-project/sql-jdbc.git"
149
- url
= " [email protected] :opensearch-project/sql-jdbc.git"
150
- }
151
- licenses {
152
- license {
153
- name = " The Apache License, Version 2.0"
154
- url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
139
+ name = " OpenSearch SQL JDBC Driver"
140
+ packaging = " jar"
141
+ url = " https://github.com/opensearch-project/sql/sql-jdbc"
142
+ description = " OpenSearch SQL JDBC driver"
143
+ scm {
144
+ connection
= " scm:[email protected] :opensearch-project/sql.git"
145
+ developerConnection
= " scm:[email protected] :opensearch-project/sql.git"
146
+ url
= " [email protected] :opensearch-project/sql.git"
147
+ }
148
+ licenses {
149
+ license {
150
+ name = " The Apache License, Version 2.0"
151
+ url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
152
+ }
155
153
}
156
- }
157
- developers {
158
- developer {
159
- id = " amazonwebservices"
160
- organization = " Amazon Web Services"
161
- organizationUrl = " https://aws.amazon.com"
154
+ developers {
155
+ developer {
156
+ name = ' OpenSearch'
157
+ url = ' https://github.com/opensearch-project/sql'
158
+ }
162
159
}
163
- }
164
160
}
165
161
}
166
- }
162
+ publishMaven(MavenPublication ) { publication ->
163
+ from components. java
167
164
168
- repositories {
169
- maven {
170
- name = " internal-snapshots"
171
- url = " s3://snapshots.opendistroforelasticsearch.amazon.com/maven"
172
- authentication {
173
- awsIm(AwsImAuthentication ) // load from EC2 role or env var
174
- }
175
- }
176
- maven {
177
- name = " internal-releases"
178
- url = " s3://artifacts.opendistroforelasticsearch.amazon.com/maven"
179
- authentication {
180
- awsIm(AwsImAuthentication ) // load from EC2 role or env var
165
+ pom {
166
+ name = " OpenSearch SQL JDBC Driver"
167
+ packaging = " jar"
168
+ url = " https://github.com/opensearch-project/sql/sql-jdbc"
169
+ description = " OpenSearch SQL JDBC driver"
170
+ scm {
171
+ connection
= " scm:[email protected] :opensearch-project/sql.git"
172
+ developerConnection
= " scm:[email protected] :opensearch-project/sql.git"
173
+ url
= " [email protected] :opensearch-project/sql.git"
174
+ }
175
+ licenses {
176
+ license {
177
+ name = " The Apache License, Version 2.0"
178
+ url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
179
+ }
180
+ }
181
+ developers {
182
+ developer {
183
+ name = ' OpenSearch'
184
+ url = ' https://github.com/opensearch-project/sql'
185
+ }
186
+ }
181
187
}
182
188
}
189
+ }
190
+
191
+ repositories {
183
192
maven {
184
193
name = " sonatype-staging"
185
194
url " https://aws.oss.sonatype.org/service/local/staging/deploy/maven2"
@@ -188,6 +197,10 @@ publishing {
188
197
password project. hasProperty(' ossrhPassword' ) ? project. property(' ossrhPassword' ) : ' '
189
198
}
190
199
}
200
+ maven {
201
+ name = " localRepo"
202
+ url " ${ project.buildDir} /repository"
203
+ }
191
204
}
192
205
193
206
// TODO - enabled debug logging for the time being, remove this eventually
0 commit comments