Skip to content

Commit

Permalink
Update package name
Browse files Browse the repository at this point in the history
Rename package name from org.opensearch.clients.* to org.opensearch.client.*.
OpenSearch is publishing all rest low level clients under client
heirarchy, hence rename to publish opensearch-java inside client
instead of creating additional clients folder.

Also, update version to 0.1.0.

Signed-off-by: Vijayan Balasubramanian <[email protected]>
  • Loading branch information
VijayanB committed Oct 11, 2021
1 parent c7f9bea commit 59540e6
Show file tree
Hide file tree
Showing 932 changed files with 7,012 additions and 7,013 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
*/

allprojects {
group = "org.opensearch.clients"
group = "org.opensearch.client"
// Release manager provides a $VERSION. If not present, it's a local or CI snapshot build.
version = System.getenv("VERSION") ?:
(File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT")
Expand Down Expand Up @@ -84,7 +84,7 @@ tasks.register<Task>(name = "publishForReleaseManager") {
val releaseDir = File(rootProject.buildDir, "release")
releaseDir.mkdirs()

File(rootProject.buildDir, "repository/org/opensearch/clients").listFiles()?.forEach { artifact ->
File(rootProject.buildDir, "repository/org/opensearch/client").listFiles()?.forEach { artifact ->
println("Releasing artifact " + artifact.name)

val versionDir = File(artifact, version)
Expand Down
10 changes: 5 additions & 5 deletions config/checkstyle/checkstyle_suppressions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@

<suppressions>
<!-- Do not enforce line length on generated code -->
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]clients[/\\]opensearch[^.]*\.java" checks="LineLength" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]clients[/\\]opensearch[^.]*\.java" checks="UnusedImports" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]clients[/\\]opensearch[/\\]OpenSearch[^.]*\.java" checks="LineLength" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]clients[/\\]opensearch[/\\]OpenSearch[^.]*\.java" checks="UnusedImports" />
<suppress files="client[/\\]src[/\\]test[/\\]java[/\\]org[/\\]opensearch[/\\]clients[/\\]opensearch[/\\]integTest[^.]*\.java" checks="Header" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]client[/\\]opensearch[^.]*\.java" checks="LineLength" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]client[/\\]opensearch[^.]*\.java" checks="UnusedImports" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]client[/\\]opensearch[/\\]OpenSearch[^.]*\.java" checks="LineLength" />
<suppress files="client[/\\]src[/\\]main[/\\]java[/\\]org[/\\]opensearch[/\\]client[/\\]opensearch[/\\]OpenSearch[^.]*\.java" checks="UnusedImports" />
<suppress files="client[/\\]src[/\\]test[/\\]java[/\\]org[/\\]opensearch[/\\]client[/\\]opensearch[/\\]integTest[^.]*\.java" checks="Header" />
</suppressions>
2 changes: 1 addition & 1 deletion config/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
0.1.0
4 changes: 2 additions & 2 deletions java-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ tasks.test {

val unitTest = task<Test>("unitTest") {
filter {
excludeTestsMatching("org.opensearch.clients.opensearch.integTest.*")
excludeTestsMatching("org.opensearch.client.opensearch.integTest.*")
}
}

val integrationTest = task<Test>("integrationTest") {
filter {
includeTestsMatching("org.opensearch.clients.opensearch.integTest.*")
includeTestsMatching("org.opensearch.client.opensearch.integTest.*")
}
systemProperty("tests.security.manager", "false")
// Basic auth settings for integration test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import jakarta.json.stream.JsonGenerator;
import org.opensearch.clients.json.DelegatingDeserializer;
import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.clients.json.JsonpMapper;
import org.opensearch.clients.json.JsonpSerializer;
import org.opensearch.clients.json.JsonpUtils;
import org.opensearch.clients.json.ObjectDeserializer;
import org.opensearch.clients.json.ToJsonp;
import org.opensearch.client.json.DelegatingDeserializer;
import org.opensearch.client.json.JsonpDeserializer;
import org.opensearch.client.json.JsonpMapper;
import org.opensearch.client.json.JsonpSerializer;
import org.opensearch.client.json.JsonpUtils;
import org.opensearch.client.json.ObjectDeserializer;
import org.opensearch.client.json.ToJsonp;

import javax.annotation.Nullable;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import org.opensearch.client.RequestOptions;
import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.client.json.JsonpDeserializer;

import javax.annotation.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import java.io.IOException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

/**
* An API response that has boolean value according to the HTTP status code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.client.json.JsonpDeserializer;

import javax.annotation.Nullable;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.clients.json.ObjectDeserializer;
import org.opensearch.client.json.JsonpDeserializer;
import org.opensearch.client.json.ObjectDeserializer;

public class OpenSearchError {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import jakarta.json.stream.JsonGenerator;
import jakarta.json.stream.JsonParser;
Expand All @@ -41,9 +41,9 @@
import org.opensearch.client.Response;
import org.opensearch.client.ResponseListener;
import org.opensearch.client.RestClient;
import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.clients.json.JsonpMapper;
import org.opensearch.clients.json.ToJsonp;
import org.opensearch.client.json.JsonpDeserializer;
import org.opensearch.client.json.JsonpMapper;
import org.opensearch.client.json.ToJsonp;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* GitHub history for details.
*/

package org.opensearch.clients.base;
package org.opensearch.client.base;

import org.opensearch.client.RequestOptions;
import org.opensearch.clients.json.JsonpMapper;
import org.opensearch.client.json.JsonpMapper;

import java.io.IOException;
import java.util.concurrent.CompletableFuture;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonParser;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonParser;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.JsonNumber;
import jakarta.json.JsonValue;
import jakarta.json.stream.JsonParser;
import jakarta.json.stream.JsonParser.Event;
import jakarta.json.stream.JsonParsingException;
import org.opensearch.clients.util.TriFunction;
import org.opensearch.client.util.TriFunction;

import java.util.ArrayList;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.spi.JsonProvider;
import jakarta.json.stream.JsonGenerator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonGenerator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonGenerator;
import jakarta.json.stream.JsonParser;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonParser;
import org.opensearch.clients.util.ObjectBuilder;
import org.opensearch.client.util.ObjectBuilder;

import java.util.function.Consumer;
import java.util.function.Supplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonParser;
import jakarta.json.stream.JsonParser.Event;
import jakarta.json.stream.JsonParsingException;
import org.opensearch.clients.util.QuadConsumer;
import org.opensearch.client.util.QuadConsumer;

import java.util.EnumSet;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonGenerator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonParser;
import jakarta.json.stream.JsonParser.Event;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json;
package org.opensearch.client.json;

import jakarta.json.stream.JsonParser;
import jakarta.json.stream.JsonParser.Event;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import com.fasterxml.jackson.core.JsonFactory;
import jakarta.json.JsonArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import com.fasterxml.jackson.core.JsonStreamContext;
import jakarta.json.JsonValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import jakarta.json.stream.JsonLocation;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;
import jakarta.json.spi.JsonProvider;
import jakarta.json.stream.JsonGenerator;
import jakarta.json.stream.JsonParser;
import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.clients.json.JsonpMapper;
import org.opensearch.client.json.JsonpDeserializer;
import org.opensearch.client.json.JsonpMapper;

import java.io.IOException;
import java.util.EnumSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import com.fasterxml.jackson.core.JsonToken;
import jakarta.json.JsonArray;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import com.fasterxml.jackson.core.JsonParseException;
import jakarta.json.JsonException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jackson;
package org.opensearch.client.json.jackson;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
* GitHub history for details.
*/

package org.opensearch.clients.json.jsonb;
package org.opensearch.client.json.jsonb;

import jakarta.json.bind.spi.JsonbProvider;
import jakarta.json.spi.JsonProvider;
import jakarta.json.stream.JsonGenerator;
import jakarta.json.stream.JsonParser;
import jakarta.json.stream.JsonParser.Event;
import org.opensearch.clients.json.JsonpDeserializer;
import org.opensearch.clients.json.JsonpMapper;
import org.opensearch.client.json.JsonpDeserializer;
import org.opensearch.client.json.JsonpMapper;

import java.io.CharArrayReader;
import java.io.CharArrayWriter;
Expand Down
Loading

0 comments on commit 59540e6

Please sign in to comment.