Skip to content

Commit

Permalink
Merge pull request #29 from specmesh/publishing-actions-repackage
Browse files Browse the repository at this point in the history
re-package for publish
  • Loading branch information
bluemonk3y authored Mar 7, 2024
2 parents 77b9bc4 + 4543298 commit 98f7ceb
Show file tree
Hide file tree
Showing 17 changed files with 29 additions and 33 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"

}
group = "io.specmesh"
group = "io.specmesh.blackbox"
project.version = scmVersion.version
version = scmVersion.version

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import io.confluent.kafka.serializers.KafkaAvroSerializer;
import io.specmesh.blackbox.example.shared.Currency;
import io.specmesh.blackbox.testharness.kafka.clients.TestClients;
import io.specmesh.blackbox.kafka.clients.TestClients;
import java.time.Duration;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package io.specmesh.blackbox;

import io.specmesh.blackbox.example.shared.Currency;
import io.specmesh.blackbox.testharness.kafka.clients.AvroSerde;
import io.specmesh.blackbox.kafka.clients.AvroSerde;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package io.specmesh.blackbox.example.shared;

import io.specmesh.blackbox.testharness.kafka.clients.AvroSerde;
import io.specmesh.blackbox.kafka.clients.AvroSerde;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
import io.confluent.kafka.serializers.KafkaAvroSerializerConfig;
import io.specmesh.avro.random.generator.API;
import io.specmesh.blackbox.example.shared.Currency;
import io.specmesh.blackbox.testharness.kafka.DockerKafkaEnvironment;
import io.specmesh.blackbox.testharness.kafka.KafkaEnvironment;
import io.specmesh.blackbox.testharness.kafka.clients.TestClients;
import io.specmesh.blackbox.kafka.DockerKafkaEnvironment;
import io.specmesh.blackbox.kafka.KafkaEnvironment;
import io.specmesh.blackbox.kafka.clients.Clients;
import io.specmesh.blackbox.kafka.clients.TestClients;
import io.specmesh.cli.Provision;
import io.specmesh.kafka.provision.Status;
import java.io.IOException;
Expand Down Expand Up @@ -94,9 +95,7 @@ void validateSerialisationWorksBothWays() throws Exception {
1,
true);

final var srClient =
io.specmesh.blackbox.testharness.kafka.clients.Clients.srClient(
KAFKA_ENV.schemeRegistryServer());
final var srClient = Clients.srClient(KAFKA_ENV.schemeRegistryServer());

// register both schemas prior for SerDe to work
srClient.register("com.example.shared.Currency", currencySchema);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
package io.specmesh.blackbox;

import io.confluent.kafka.serializers.KafkaAvroSerializer;
import io.specmesh.blackbox.kafka.clients.TestClients;
import io.specmesh.blackbox.passengers.Passenger;
import io.specmesh.blackbox.signedupvalue.UserSignedUp;
import io.specmesh.blackbox.testharness.kafka.clients.TestClients;
import java.time.Duration;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package io.specmesh.blackbox.passengers;

import io.specmesh.blackbox.testharness.kafka.clients.AvroSerde;
import io.specmesh.blackbox.kafka.clients.AvroSerde;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package io.specmesh.blackbox.signedupvalue;

import io.specmesh.blackbox.testharness.kafka.clients.AvroSerde;
import io.specmesh.blackbox.kafka.clients.AvroSerde;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
import io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException;
import io.confluent.kafka.serializers.KafkaAvroSerializer;
import io.specmesh.avro.random.generator.API;
import io.specmesh.blackbox.testharness.kafka.DockerKafkaEnvironment;
import io.specmesh.blackbox.testharness.kafka.KafkaEnvironment;
import io.specmesh.blackbox.testharness.kafka.clients.TestClients;
import io.specmesh.blackbox.kafka.DockerKafkaEnvironment;
import io.specmesh.blackbox.kafka.KafkaEnvironment;
import io.specmesh.blackbox.kafka.clients.Clients;
import io.specmesh.blackbox.kafka.clients.TestClients;
import io.specmesh.cli.Provision;
import io.specmesh.kafka.provision.Status;
import java.io.IOException;
Expand Down Expand Up @@ -86,9 +87,7 @@ void doThings() throws Exception {
}

private static void sanityCheckSchemaCreation() throws IOException, RestClientException {
try (var srClient =
io.specmesh.blackbox.testharness.kafka.clients.Clients.srClient(
KAFKA_ENV.schemeRegistryServer())) {
try (var srClient = Clients.srClient(KAFKA_ENV.schemeRegistryServer())) {
final var allSubjects = srClient.getAllSubjects();
assertThat("Should be 2 schemas in 2 subjects", allSubjects, hasSize(2));
allSubjects.forEach(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.specmesh.blackbox.testharness;
package io.specmesh.blackbox;

public class Library {
public boolean someLibraryMethod() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
* limitations under the License.
*/

package io.specmesh.blackbox.testharness.kafka;
package io.specmesh.blackbox.kafka;

import static java.util.Objects.requireNonNull;

import io.confluent.kafka.schemaregistry.avro.AvroSchemaProvider;
import io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient;
import io.confluent.kafka.schemaregistry.json.JsonSchemaProvider;
import io.confluent.kafka.schemaregistry.protobuf.ProtobufSchemaProvider;
import io.specmesh.blackbox.testharness.kafka.clients.Clients;
import io.specmesh.blackbox.testharness.kafka.schema.SchemaRegistryContainer;
import io.specmesh.blackbox.kafka.clients.Clients;
import io.specmesh.blackbox.kafka.schema.SchemaRegistryContainer;
import java.time.Duration;
import java.util.Collection;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.specmesh.blackbox.testharness.kafka;
package io.specmesh.blackbox.kafka;

import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient;
import org.apache.kafka.clients.admin.Admin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.specmesh.blackbox.testharness.kafka.clients;
package io.specmesh.blackbox.kafka.clients;

import io.confluent.kafka.schemaregistry.client.SchemaRegistryClient;
import io.confluent.kafka.serializers.KafkaAvroDeserializer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.specmesh.blackbox.testharness.kafka.clients;
package io.specmesh.blackbox.kafka.clients;

import io.confluent.kafka.schemaregistry.avro.AvroSchemaProvider;
import io.confluent.kafka.schemaregistry.client.CachedSchemaRegistryClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.specmesh.blackbox.testharness.kafka.clients;
package io.specmesh.blackbox.kafka.clients;

import java.util.HashMap;
import java.util.List;
Expand Down Expand Up @@ -140,7 +140,7 @@ private static <K, V> Producer<K, V> producer(
final String userName,
final Map<String, Object> additionalProps) {
final Map<String, Object> props =
io.specmesh.blackbox.testharness.kafka.clients.Clients.producerProperties(
Clients.producerProperties(
domainId,
UUID.randomUUID().toString(),
bootstrapUrl,
Expand All @@ -150,9 +150,7 @@ private static <K, V> Producer<K, V> producer(
false,
additionalProps);

props.putAll(
io.specmesh.blackbox.testharness.kafka.clients.Clients.clientSaslAuthProperties(
userName, userName + "-secret"));
props.putAll(Clients.clientSaslAuthProperties(userName, userName + "-secret"));
valueSerializer.configure(props, false);
return new KafkaProducer<>(props, keySerializer, (Serializer<V>) valueSerializer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.specmesh.blackbox.testharness.kafka.schema;
package io.specmesh.blackbox.kafka.schema;

import java.net.MalformedURLException;
import java.net.URL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.specmesh.blackbox.testharness;
package io.specmesh.blackbox;

import static org.junit.jupiter.api.Assertions.assertTrue;

Expand Down

0 comments on commit 98f7ceb

Please sign in to comment.