diff --git a/inventory-service/license-header b/inventory-service/license-header new file mode 100644 index 00000000..7a2aaaf2 --- /dev/null +++ b/inventory-service/license-header @@ -0,0 +1,6 @@ +/*** +

+ Licensed under MIT License Copyright (c) $YEAR Raja Kolli. +

+***/ + diff --git a/inventory-service/pom.xml b/inventory-service/pom.xml index e1ef4f74..ed9b9572 100644 --- a/inventory-service/pom.xml +++ b/inventory-service/pom.xml @@ -497,11 +497,11 @@ - 1.15.0 + 1.17.0 - - /* Licensed under Apache-2.0 $YEAR */ + + ${project.basedir}/license-header diff --git a/inventory-service/src/main/java/com/example/common/dtos/OrderDto.java b/inventory-service/src/main/java/com/example/common/dtos/OrderDto.java index 28871f75..c3f1079c 100644 --- a/inventory-service/src/main/java/com/example/common/dtos/OrderDto.java +++ b/inventory-service/src/main/java/com/example/common/dtos/OrderDto.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.common.dtos; import java.io.Serializable; diff --git a/inventory-service/src/main/java/com/example/common/dtos/OrderItemDto.java b/inventory-service/src/main/java/com/example/common/dtos/OrderItemDto.java index 8af04f74..8ad8dcd9 100644 --- a/inventory-service/src/main/java/com/example/common/dtos/OrderItemDto.java +++ b/inventory-service/src/main/java/com/example/common/dtos/OrderItemDto.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.common.dtos; import java.io.Serializable; diff --git a/inventory-service/src/main/java/com/example/common/dtos/ProductDto.java b/inventory-service/src/main/java/com/example/common/dtos/ProductDto.java index 2c14ac57..280a0217 100644 --- a/inventory-service/src/main/java/com/example/common/dtos/ProductDto.java +++ b/inventory-service/src/main/java/com/example/common/dtos/ProductDto.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.common.dtos; import jakarta.validation.constraints.NotBlank; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/InventoryServiceApplication.java b/inventory-service/src/main/java/com/example/inventoryservice/InventoryServiceApplication.java index 9bb1604b..44f9feaf 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/InventoryServiceApplication.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/InventoryServiceApplication.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice; import com.example.inventoryservice.config.ApplicationProperties; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/ApplicationProperties.java b/inventory-service/src/main/java/com/example/inventoryservice/config/ApplicationProperties.java index 88dec09e..cbcf169a 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/ApplicationProperties.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/ApplicationProperties.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import lombok.Data; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/Initializer.java b/inventory-service/src/main/java/com/example/inventoryservice/config/Initializer.java index 84f45481..27d2c1ad 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/Initializer.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/Initializer.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import com.example.inventoryservice.entities.Inventory; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/KafkaListenerConfig.java b/inventory-service/src/main/java/com/example/inventoryservice/config/KafkaListenerConfig.java index 92130501..95498b6d 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/KafkaListenerConfig.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/KafkaListenerConfig.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import com.example.common.dtos.OrderDto; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/RestTemplateConfig.java b/inventory-service/src/main/java/com/example/inventoryservice/config/RestTemplateConfig.java index c5e4c812..4556dce6 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/RestTemplateConfig.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/RestTemplateConfig.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import org.springframework.boot.web.client.RestTemplateBuilder; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/SwaggerConfig.java b/inventory-service/src/main/java/com/example/inventoryservice/config/SwaggerConfig.java index 80831cce..0dc522b0 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/SwaggerConfig.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/SwaggerConfig.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2022-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2022-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import io.swagger.v3.oas.annotations.OpenAPIDefinition; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/WebMvcConfig.java b/inventory-service/src/main/java/com/example/inventoryservice/config/WebMvcConfig.java index 64af9bf5..f5422db7 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/WebMvcConfig.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/WebMvcConfig.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import com.example.inventoryservice.config.ApplicationProperties.Cors; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/logging/Loggable.java b/inventory-service/src/main/java/com/example/inventoryservice/config/logging/Loggable.java index 2d542158..8cf75195 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/logging/Loggable.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/logging/Loggable.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.config.logging; import static java.lang.annotation.ElementType.METHOD; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/config/logging/LoggingAspect.java b/inventory-service/src/main/java/com/example/inventoryservice/config/logging/LoggingAspect.java index 6ac0c1ac..5a553e58 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/config/logging/LoggingAspect.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/config/logging/LoggingAspect.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.config.logging; import com.example.inventoryservice.utils.AppConstants; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/dtos/InventoryDto.java b/inventory-service/src/main/java/com/example/inventoryservice/dtos/InventoryDto.java index f1c00aca..ad42f6b1 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/dtos/InventoryDto.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/dtos/InventoryDto.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.dtos; import jakarta.validation.constraints.NotBlank; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/entities/Inventory.java b/inventory-service/src/main/java/com/example/inventoryservice/entities/Inventory.java index 7e2082ed..33c7f03f 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/entities/Inventory.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/entities/Inventory.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.entities; import jakarta.persistence.Column; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/mapper/InventoryMapper.java b/inventory-service/src/main/java/com/example/inventoryservice/mapper/InventoryMapper.java index f064e5a5..5dcbefa9 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/mapper/InventoryMapper.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/mapper/InventoryMapper.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.mapper; import com.example.inventoryservice.dtos.InventoryDto; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/model/response/PagedResult.java b/inventory-service/src/main/java/com/example/inventoryservice/model/response/PagedResult.java index 98f5be89..ce04b0d2 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/model/response/PagedResult.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/model/response/PagedResult.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.model.response; import com.fasterxml.jackson.annotation.JsonProperty; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/repositories/InventoryRepository.java b/inventory-service/src/main/java/com/example/inventoryservice/repositories/InventoryRepository.java index b6090f19..93189f5d 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/repositories/InventoryRepository.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/repositories/InventoryRepository.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.repositories; import com.example.inventoryservice.entities.Inventory; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryOrderManageService.java b/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryOrderManageService.java index 6e9e02d4..af0fd800 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryOrderManageService.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryOrderManageService.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2022-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2022-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.services; import com.example.common.dtos.OrderDto; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryService.java b/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryService.java index 89925cb8..959317c3 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryService.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/services/InventoryService.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.services; import com.example.inventoryservice.config.logging.Loggable; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/services/ProductManageService.java b/inventory-service/src/main/java/com/example/inventoryservice/services/ProductManageService.java index 3b0ee821..a8f5dcaf 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/services/ProductManageService.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/services/ProductManageService.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.services; import com.example.common.dtos.ProductDto; diff --git a/inventory-service/src/main/java/com/example/inventoryservice/utils/AppConstants.java b/inventory-service/src/main/java/com/example/inventoryservice/utils/AppConstants.java index 11747cc8..60746162 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/utils/AppConstants.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/utils/AppConstants.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2022 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2022 Raja Kolli. +

+***/ + package com.example.inventoryservice.utils; public final class AppConstants { diff --git a/inventory-service/src/main/java/com/example/inventoryservice/web/controllers/InventoryController.java b/inventory-service/src/main/java/com/example/inventoryservice/web/controllers/InventoryController.java index e2d4eb89..cd98a879 100644 --- a/inventory-service/src/main/java/com/example/inventoryservice/web/controllers/InventoryController.java +++ b/inventory-service/src/main/java/com/example/inventoryservice/web/controllers/InventoryController.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.web.controllers; import com.example.inventoryservice.dtos.InventoryDto; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/InventoryServiceApplicationIntegrationTest.java b/inventory-service/src/test/java/com/example/inventoryservice/InventoryServiceApplicationIntegrationTest.java index b5177208..f5a70aee 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/InventoryServiceApplicationIntegrationTest.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/InventoryServiceApplicationIntegrationTest.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice; import static org.assertj.core.api.Assertions.assertThat; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/common/AbstractIntegrationTest.java b/inventory-service/src/test/java/com/example/inventoryservice/common/AbstractIntegrationTest.java index 39873e12..2a6d98c3 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/common/AbstractIntegrationTest.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/common/AbstractIntegrationTest.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.common; import static com.example.inventoryservice.utils.AppConstants.PROFILE_TEST; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/config/MyContainers.java b/inventory-service/src/test/java/com/example/inventoryservice/config/MyContainers.java index c5e53f10..12786922 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/config/MyContainers.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/config/MyContainers.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import org.springframework.boot.testcontainers.service.connection.ServiceConnection; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/config/MyPostGreSQLContainer.java b/inventory-service/src/test/java/com/example/inventoryservice/config/MyPostGreSQLContainer.java index db2e0c91..aec749e9 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/config/MyPostGreSQLContainer.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/config/MyPostGreSQLContainer.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.config; import org.springframework.boot.testcontainers.service.connection.ServiceConnection; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/repositories/InventoryRepositoryTest.java b/inventory-service/src/test/java/com/example/inventoryservice/repositories/InventoryRepositoryTest.java index 592c3ffa..0f0bdf14 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/repositories/InventoryRepositoryTest.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/repositories/InventoryRepositoryTest.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.repositories; import static org.assertj.core.api.Assertions.assertThat; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/services/InventoryOrderManageServiceTest.java b/inventory-service/src/test/java/com/example/inventoryservice/services/InventoryOrderManageServiceTest.java index 0bc91292..8ff30c8e 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/services/InventoryOrderManageServiceTest.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/services/InventoryOrderManageServiceTest.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.services; import static org.assertj.core.api.Assertions.assertThat; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/services/ProductManageServiceTest.java b/inventory-service/src/test/java/com/example/inventoryservice/services/ProductManageServiceTest.java index 5932d199..696739ab 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/services/ProductManageServiceTest.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/services/ProductManageServiceTest.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.services; import static org.assertj.core.api.Assertions.assertThat; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerIT.java b/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerIT.java index 08f8de08..02d63cda 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerIT.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerIT.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.web.controllers; import static org.hamcrest.CoreMatchers.is; diff --git a/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerTest.java b/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerTest.java index 0b6e6a0f..d26f4324 100644 --- a/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerTest.java +++ b/inventory-service/src/test/java/com/example/inventoryservice/web/controllers/InventoryControllerTest.java @@ -1,4 +1,9 @@ -/* Licensed under Apache-2.0 2021-2023 */ +/*** +

+ Licensed under MIT License Copyright (c) 2021-2023 Raja Kolli. +

+***/ + package com.example.inventoryservice.web.controllers; import static org.hamcrest.CoreMatchers.is;