Skip to content

Commit

Permalink
feat: start migration to incubator with quickstart projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriidenisenko committed Nov 5, 2024
1 parent 5ec9507 commit 902de6c
Show file tree
Hide file tree
Showing 16 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>dev.knowhowto.quickstart</groupId>
<groupId>com.iqkv.incubator.quickstart</groupId>
<artifactId>quickstart-kafka-producing-hello</artifactId>
<version>24.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
Expand All @@ -19,7 +19,7 @@
</licenses>
<organization>
<name>KnowHowSpringBoot Bootcamp</name>
<url>https://knowhowto.dev</url>
<url>https://iqkv.com</url>
</organization>
<developers>
<developer>
Expand All @@ -45,7 +45,7 @@
<sonar.coverage.exclusions>**/*Config*.java,**/*Properties.java,**/*Test.java,**/Test*.java</sonar.coverage.exclusions>
<checkstyle.skip>false</checkstyle.skip>
<maven.gitcommitid.skip>false</maven.gitcommitid.skip>
<start-class>dev.knowhowto.kafkaproducinghello.KafkaProducingHelloApplication</start-class>
<start-class>com.iqkv.incubator.quickstart.kafkaproducinghello.KafkaProducingHelloApplication</start-class>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion src/main/docker/prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ global :
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels :
monitor : 'knowhowto'
monitor : 'appindevelopment'

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.kafkaproducinghello;
package com.iqkv.incubator.quickstart.kafkaproducinghello;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.kafkaproducinghello.config;
package com.iqkv.incubator.quickstart.kafkaproducinghello.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.kafkaproducinghello.config;
package com.iqkv.incubator.quickstart.kafkaproducinghello.config;

/**
* Application constants.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dev.knowhowto.kafkaproducinghello.config;
package com.iqkv.incubator.quickstart.kafkaproducinghello.config;

import static dev.knowhowto.kafkaproducinghello.config.Constants.TOPIC_DEFINITION_HELLO_WORLD;
import static com.iqkv.incubator.quickstart.kafkaproducinghello.config.Constants.TOPIC_DEFINITION_HELLO_WORLD;

import com.iqkv.boot.kafka.config.KafkaTopicDefinitionProperties;
import lombok.RequiredArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.knowhowto.kafkaproducinghello.config;
package com.iqkv.incubator.quickstart.kafkaproducinghello.config;

import com.iqkv.boot.kafka.config.BaseKafkaProducingConfig;
import dev.knowhowto.kafkaproducinghello.model.Greeting;
import com.iqkv.incubator.quickstart.kafkaproducinghello.model.Greeting;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
import org.springframework.boot.ssl.SslBundles;
import org.springframework.context.annotation.Bean;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.kafkaproducinghello.config;
package com.iqkv.incubator.quickstart.kafkaproducinghello.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.iqkv.incubator.quickstart.kafkaproducinghello.model;

public record Greeting(String message) {
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package dev.knowhowto.kafkaproducinghello.producer;
package com.iqkv.incubator.quickstart.kafkaproducinghello.producer;

import static dev.knowhowto.kafkaproducinghello.config.Constants.TOPIC_DEFINITION_HELLO_WORLD;
import static com.iqkv.incubator.quickstart.kafkaproducinghello.config.Constants.TOPIC_DEFINITION_HELLO_WORLD;

import java.util.UUID;

import com.iqkv.boot.kafka.config.KafkaTopicDefinitionProperties;
import dev.knowhowto.kafkaproducinghello.model.Greeting;
import com.iqkv.incubator.quickstart.kafkaproducinghello.model.Greeting;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.core.KafkaTemplate;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package dev.knowhowto.kafkaproducinghello.service;
package com.iqkv.incubator.quickstart.kafkaproducinghello.service;

import dev.knowhowto.kafkaproducinghello.model.Greeting;
import dev.knowhowto.kafkaproducinghello.producer.GreetingMessageProducer;
import com.iqkv.incubator.quickstart.kafkaproducinghello.model.Greeting;
import com.iqkv.incubator.quickstart.kafkaproducinghello.producer.GreetingMessageProducer;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package dev.knowhowto.kafkaproducinghello;
package com.iqkv.incubator.quickstart.kafkaproducinghello;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dev.knowhowto.kafkaproducinghello.config;
package com.iqkv.incubator.quickstart.kafkaproducinghello.config;

import java.util.HashMap;

import com.iqkv.boot.kafka.config.BaseKafkaConsumingConfig;
import dev.knowhowto.kafkaproducinghello.model.Greeting;
import com.iqkv.incubator.quickstart.kafkaproducinghello.model.Greeting;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package dev.knowhowto.kafkaproducinghello.consumer;
package com.iqkv.incubator.quickstart.kafkaproducinghello.consumer;

import java.util.concurrent.CountDownLatch;

import com.iqkv.boot.kafka.exception.ConsumerRecordProcessingException;
import dev.knowhowto.kafkaproducinghello.model.Greeting;
import com.iqkv.incubator.quickstart.kafkaproducinghello.model.Greeting;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package dev.knowhowto.kafkaproducinghello.producer;
package com.iqkv.incubator.quickstart.kafkaproducinghello.producer;


import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.CoreMatchers.containsString;

import java.util.concurrent.TimeUnit;

import dev.knowhowto.kafkaproducinghello.consumer.GreetingMessageConsumer;
import dev.knowhowto.kafkaproducinghello.model.Greeting;
import com.iqkv.incubator.quickstart.kafkaproducinghello.consumer.GreetingMessageConsumer;
import com.iqkv.incubator.quickstart.kafkaproducinghello.model.Greeting;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down

0 comments on commit 902de6c

Please sign in to comment.