From bbdab7902b94e12e81274a2ff6b6ef9bf1327f1f Mon Sep 17 00:00:00 2001
From: Dima Denisenko <1253839+dmitriidenisenko@users.noreply.github.com>
Date: Tue, 5 Nov 2024 16:50:24 +0200
Subject: [PATCH] feat: start migration to incubator with quickstart projects
---
pom.xml | 6 +++---
src/main/docker/prometheus/prometheus.yml | 2 +-
.../amqpconsuminghello/AmqpConsumingHelloApplication.java | 2 +-
.../amqpconsuminghello/config/AmqpConfiguration.java | 2 +-
.../amqpconsuminghello/config/AmqpConsumingConfig.java | 4 ++--
.../amqpconsuminghello/config/AmqpQueuesProperties.java | 2 +-
.../amqpconsuminghello/config/ApplicationConfig.java | 2 +-
.../amqpconsuminghello/config/WebSecurityConfig.java | 2 +-
.../consumer/GreetingMessageConsumer.java | 4 ++--
.../quickstart}/amqpconsuminghello/model/Greeting.java | 2 +-
.../amqpconsuminghello/AmqpConsumingHelloApplicationIT.java | 2 +-
.../consumer/GreetingMessageConsumerIT.java | 6 +++---
.../producer/GreetingMessageProducer.java | 6 +++---
13 files changed, 21 insertions(+), 21 deletions(-)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/AmqpConsumingHelloApplication.java (90%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/config/AmqpConfiguration.java (95%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/config/AmqpConsumingConfig.java (89%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/config/AmqpQueuesProperties.java (86%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/config/ApplicationConfig.java (83%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/config/WebSecurityConfig.java (90%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/consumer/GreetingMessageConsumer.java (82%)
rename src/main/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/model/Greeting.java (74%)
rename src/test/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java (86%)
rename src/test/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java (82%)
rename src/test/java/{dev/knowhowto => com/iqkv/incubator/quickstart}/amqpconsuminghello/producer/GreetingMessageProducer.java (72%)
diff --git a/pom.xml b/pom.xml
index acfebdc..4d58b49 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4.0.0
- dev.knowhowto.quickstart
+ com.iqkv.incubator.quickstart
quickstart-amqp-consuming-hello
24.0.0-SNAPSHOT
jar
@@ -19,7 +19,7 @@
KnowHowSpringBoot Bootcamp
- https://knowhowto.dev
+ https://iqkv.com
@@ -45,7 +45,7 @@
**/*Config*.java,**/*Properties.java,**/*Test.java,**/Test*.java
false
false
- dev.knowhowto.amqpconsuminghello.AmqpConsumingHelloApplication
+ com.iqkv.incubator.quickstart.amqpconsuminghello.AmqpConsumingHelloApplication
diff --git a/src/main/docker/prometheus/prometheus.yml b/src/main/docker/prometheus/prometheus.yml
index 2696564..62fac50 100644
--- a/src/main/docker/prometheus/prometheus.yml
+++ b/src/main/docker/prometheus/prometheus.yml
@@ -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.
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/AmqpConsumingHelloApplication.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/AmqpConsumingHelloApplication.java
similarity index 90%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/AmqpConsumingHelloApplication.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/AmqpConsumingHelloApplication.java
index 34c5f59..3b5b945 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/AmqpConsumingHelloApplication.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/AmqpConsumingHelloApplication.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello;
+package com.iqkv.incubator.quickstart.amqpconsuminghello;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpConfiguration.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpConfiguration.java
similarity index 95%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpConfiguration.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpConfiguration.java
index f504938..cc67659 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpConfiguration.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpConfiguration.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello.config;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.config;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.AmqpAdmin;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpConsumingConfig.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpConsumingConfig.java
similarity index 89%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpConsumingConfig.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpConsumingConfig.java
index 86e4dd2..2dacc65 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpConsumingConfig.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpConsumingConfig.java
@@ -1,6 +1,6 @@
-package dev.knowhowto.amqpconsuminghello.config;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.config;
-import dev.knowhowto.amqpconsuminghello.consumer.GreetingMessageConsumer;
+import com.iqkv.incubator.quickstart.amqpconsuminghello.consumer.GreetingMessageConsumer;
import lombok.RequiredArgsConstructor;
import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.amqp.rabbit.connection.ConnectionFactory;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpQueuesProperties.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpQueuesProperties.java
similarity index 86%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpQueuesProperties.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpQueuesProperties.java
index 6da6170..4e37d68 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/config/AmqpQueuesProperties.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/AmqpQueuesProperties.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello.config;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.config;
import jakarta.validation.constraints.NotNull;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/config/ApplicationConfig.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/ApplicationConfig.java
similarity index 83%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/config/ApplicationConfig.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/ApplicationConfig.java
index dccbb62..b5504cd 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/config/ApplicationConfig.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/ApplicationConfig.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello.config;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.config;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/config/WebSecurityConfig.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/WebSecurityConfig.java
similarity index 90%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/config/WebSecurityConfig.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/WebSecurityConfig.java
index 80cbfe7..39b8f94 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/config/WebSecurityConfig.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/config/WebSecurityConfig.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello.config;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/consumer/GreetingMessageConsumer.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/consumer/GreetingMessageConsumer.java
similarity index 82%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/consumer/GreetingMessageConsumer.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/consumer/GreetingMessageConsumer.java
index 7339ec6..2ad29f8 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/consumer/GreetingMessageConsumer.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/consumer/GreetingMessageConsumer.java
@@ -1,8 +1,8 @@
-package dev.knowhowto.amqpconsuminghello.consumer;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.consumer;
import java.util.concurrent.CountDownLatch;
-import dev.knowhowto.amqpconsuminghello.model.Greeting;
+import com.iqkv.incubator.quickstart.amqpconsuminghello.model.Greeting;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
diff --git a/src/main/java/dev/knowhowto/amqpconsuminghello/model/Greeting.java b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/model/Greeting.java
similarity index 74%
rename from src/main/java/dev/knowhowto/amqpconsuminghello/model/Greeting.java
rename to src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/model/Greeting.java
index cfb3221..49cda49 100644
--- a/src/main/java/dev/knowhowto/amqpconsuminghello/model/Greeting.java
+++ b/src/main/java/com/iqkv/incubator/quickstart/amqpconsuminghello/model/Greeting.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello.model;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.model;
import java.io.Serial;
import java.io.Serializable;
diff --git a/src/test/java/dev/knowhowto/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java b/src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java
similarity index 86%
rename from src/test/java/dev/knowhowto/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java
rename to src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java
index 60a4b57..5c8437d 100644
--- a/src/test/java/dev/knowhowto/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java
+++ b/src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/AmqpConsumingHelloApplicationIT.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello;
+package com.iqkv.incubator.quickstart.amqpconsuminghello;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
diff --git a/src/test/java/dev/knowhowto/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java b/src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java
similarity index 82%
rename from src/test/java/dev/knowhowto/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java
rename to src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java
index 21804a1..cc927f0 100644
--- a/src/test/java/dev/knowhowto/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java
+++ b/src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/consumer/GreetingMessageConsumerIT.java
@@ -1,4 +1,4 @@
-package dev.knowhowto.amqpconsuminghello.consumer;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.consumer;
import static org.assertj.core.api.Assertions.assertThat;
@@ -6,8 +6,8 @@
import java.util.concurrent.TimeUnit;
-import dev.knowhowto.amqpconsuminghello.model.Greeting;
-import dev.knowhowto.amqpconsuminghello.producer.GreetingMessageProducer;
+import com.iqkv.incubator.quickstart.amqpconsuminghello.model.Greeting;
+import com.iqkv.incubator.quickstart.amqpconsuminghello.producer.GreetingMessageProducer;
import org.hamcrest.MatcherAssert;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
diff --git a/src/test/java/dev/knowhowto/amqpconsuminghello/producer/GreetingMessageProducer.java b/src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/producer/GreetingMessageProducer.java
similarity index 72%
rename from src/test/java/dev/knowhowto/amqpconsuminghello/producer/GreetingMessageProducer.java
rename to src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/producer/GreetingMessageProducer.java
index 94c36f7..64077d8 100644
--- a/src/test/java/dev/knowhowto/amqpconsuminghello/producer/GreetingMessageProducer.java
+++ b/src/test/java/com/iqkv/incubator/quickstart/amqpconsuminghello/producer/GreetingMessageProducer.java
@@ -1,7 +1,7 @@
-package dev.knowhowto.amqpconsuminghello.producer;
+package com.iqkv.incubator.quickstart.amqpconsuminghello.producer;
-import dev.knowhowto.amqpconsuminghello.config.AmqpQueuesProperties;
-import dev.knowhowto.amqpconsuminghello.model.Greeting;
+import com.iqkv.incubator.quickstart.amqpconsuminghello.config.AmqpQueuesProperties;
+import com.iqkv.incubator.quickstart.amqpconsuminghello.model.Greeting;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;