diff --git a/backend/build.gradle b/backend/core/build.gradle similarity index 100% rename from backend/build.gradle rename to backend/core/build.gradle diff --git a/backend/gradle/wrapper/gradle-wrapper.jar b/backend/core/gradle/wrapper/gradle-wrapper.jar similarity index 100% rename from backend/gradle/wrapper/gradle-wrapper.jar rename to backend/core/gradle/wrapper/gradle-wrapper.jar diff --git a/backend/gradle/wrapper/gradle-wrapper.properties b/backend/core/gradle/wrapper/gradle-wrapper.properties similarity index 100% rename from backend/gradle/wrapper/gradle-wrapper.properties rename to backend/core/gradle/wrapper/gradle-wrapper.properties diff --git a/backend/gradlew b/backend/core/gradlew similarity index 100% rename from backend/gradlew rename to backend/core/gradlew diff --git a/backend/gradlew.bat b/backend/core/gradlew.bat similarity index 100% rename from backend/gradlew.bat rename to backend/core/gradlew.bat diff --git a/backend/settings.gradle b/backend/core/settings.gradle similarity index 100% rename from backend/settings.gradle rename to backend/core/settings.gradle diff --git a/backend/src/main/java/com/rollthedice/backend/BackendApplication.java b/backend/core/src/main/java/com/rollthedice/backend/BackendApplication.java similarity index 82% rename from backend/src/main/java/com/rollthedice/backend/BackendApplication.java rename to backend/core/src/main/java/com/rollthedice/backend/BackendApplication.java index 93f80a5f..13a91fbb 100644 --- a/backend/src/main/java/com/rollthedice/backend/BackendApplication.java +++ b/backend/core/src/main/java/com/rollthedice/backend/BackendApplication.java @@ -3,8 +3,10 @@ import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.data.jpa.repository.config.EnableJpaAuditing; +import org.springframework.scheduling.annotation.EnableScheduling; @EnableJpaAuditing +@EnableScheduling @SpringBootApplication public class BackendApplication { diff --git a/backend/src/main/java/com/rollthedice/backend/domain/crawling/NewsCrawlingService.java b/backend/core/src/main/java/com/rollthedice/backend/domain/crawling/NewsCrawlingService.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/crawling/NewsCrawlingService.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/crawling/NewsCrawlingService.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/member/entity/Member.java b/backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/Member.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/member/entity/Member.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/Member.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/member/entity/Role.java b/backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/Role.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/member/entity/Role.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/Role.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/member/entity/SocialType.java b/backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/SocialType.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/member/entity/SocialType.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/SocialType.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/member/entity/Status.java b/backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/Status.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/member/entity/Status.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/member/entity/Status.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/member/repository/MemberRepository.java b/backend/core/src/main/java/com/rollthedice/backend/domain/member/repository/MemberRepository.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/member/repository/MemberRepository.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/member/repository/MemberRepository.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/contentqueue/ContentProducer.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/contentqueue/ContentProducer.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/contentqueue/ContentProducer.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/contentqueue/ContentProducer.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/contentqueue/SummarizedContentConsumer.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/contentqueue/SummarizedContentConsumer.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/contentqueue/SummarizedContentConsumer.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/contentqueue/SummarizedContentConsumer.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/dto/ContentMessageDto.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/dto/ContentMessageDto.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/dto/ContentMessageDto.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/dto/ContentMessageDto.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/dto/NewsUrlDto.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/dto/NewsUrlDto.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/dto/NewsUrlDto.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/dto/NewsUrlDto.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/entity/Bookmark.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/Bookmark.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/entity/Bookmark.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/Bookmark.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/entity/News.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/News.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/entity/News.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/News.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/entity/ReadNews.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/repository/NewsRepository.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/repository/NewsRepository.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/repository/NewsRepository.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/repository/NewsRepository.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/service/NewsCategory.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/service/NewsCategory.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/service/NewsCategory.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/service/NewsCategory.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/news/service/NewsService.java b/backend/core/src/main/java/com/rollthedice/backend/domain/news/service/NewsService.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/news/service/NewsService.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/news/service/NewsService.java diff --git a/backend/src/main/java/com/rollthedice/backend/domain/notification/entity/Notification.java b/backend/core/src/main/java/com/rollthedice/backend/domain/notification/entity/Notification.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/domain/notification/entity/Notification.java rename to backend/core/src/main/java/com/rollthedice/backend/domain/notification/entity/Notification.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/config/BaseTimeEntity.java b/backend/core/src/main/java/com/rollthedice/backend/global/config/BaseTimeEntity.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/config/BaseTimeEntity.java rename to backend/core/src/main/java/com/rollthedice/backend/global/config/BaseTimeEntity.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/config/RabbitMQConfig.java b/backend/core/src/main/java/com/rollthedice/backend/global/config/RabbitMQConfig.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/config/RabbitMQConfig.java rename to backend/core/src/main/java/com/rollthedice/backend/global/config/RabbitMQConfig.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/config/SecurityConfig.java b/backend/core/src/main/java/com/rollthedice/backend/global/config/SecurityConfig.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/config/SecurityConfig.java rename to backend/core/src/main/java/com/rollthedice/backend/global/config/SecurityConfig.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/jwt/filter/JwtAuthenticationProcessingFilter.java b/backend/core/src/main/java/com/rollthedice/backend/global/jwt/filter/JwtAuthenticationProcessingFilter.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/jwt/filter/JwtAuthenticationProcessingFilter.java rename to backend/core/src/main/java/com/rollthedice/backend/global/jwt/filter/JwtAuthenticationProcessingFilter.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/jwt/service/JwtService.java b/backend/core/src/main/java/com/rollthedice/backend/global/jwt/service/JwtService.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/jwt/service/JwtService.java rename to backend/core/src/main/java/com/rollthedice/backend/global/jwt/service/JwtService.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/jwt/util/PasswordUtil.java b/backend/core/src/main/java/com/rollthedice/backend/global/jwt/util/PasswordUtil.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/jwt/util/PasswordUtil.java rename to backend/core/src/main/java/com/rollthedice/backend/global/jwt/util/PasswordUtil.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/login/filter/CustomJsonUsernamePasswordAuthenticationFilter.java b/backend/core/src/main/java/com/rollthedice/backend/global/login/filter/CustomJsonUsernamePasswordAuthenticationFilter.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/login/filter/CustomJsonUsernamePasswordAuthenticationFilter.java rename to backend/core/src/main/java/com/rollthedice/backend/global/login/filter/CustomJsonUsernamePasswordAuthenticationFilter.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/login/handler/LoginFailureHandler.java b/backend/core/src/main/java/com/rollthedice/backend/global/login/handler/LoginFailureHandler.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/login/handler/LoginFailureHandler.java rename to backend/core/src/main/java/com/rollthedice/backend/global/login/handler/LoginFailureHandler.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/login/handler/LoginSuccessHandler.java b/backend/core/src/main/java/com/rollthedice/backend/global/login/handler/LoginSuccessHandler.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/login/handler/LoginSuccessHandler.java rename to backend/core/src/main/java/com/rollthedice/backend/global/login/handler/LoginSuccessHandler.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/login/service/LoginService.java b/backend/core/src/main/java/com/rollthedice/backend/global/login/service/LoginService.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/login/service/LoginService.java rename to backend/core/src/main/java/com/rollthedice/backend/global/login/service/LoginService.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/CustomOAuth2User.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/CustomOAuth2User.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/CustomOAuth2User.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/CustomOAuth2User.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/OAuthAttributes.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/OAuthAttributes.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/OAuthAttributes.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/OAuthAttributes.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginFailureHandler.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginFailureHandler.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginFailureHandler.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginFailureHandler.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginSuccessHandler.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginSuccessHandler.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginSuccessHandler.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/handler/OAuth2LoginSuccessHandler.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/service/CustomOAuth2UserService.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/service/CustomOAuth2UserService.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/service/CustomOAuth2UserService.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/service/CustomOAuth2UserService.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/KakaoOAuth2UserInfo.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/KakaoOAuth2UserInfo.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/KakaoOAuth2UserInfo.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/KakaoOAuth2UserInfo.java diff --git a/backend/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/OAuth2UserInfo.java b/backend/core/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/OAuth2UserInfo.java similarity index 100% rename from backend/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/OAuth2UserInfo.java rename to backend/core/src/main/java/com/rollthedice/backend/global/oauth2/userInfo/OAuth2UserInfo.java diff --git a/backend/core/src/main/resources/application.yml b/backend/core/src/main/resources/application.yml new file mode 100644 index 00000000..e69de29b diff --git a/backend/src/test/java/com/rollthedice/backend/BackendApplicationTests.java b/backend/core/src/test/java/com/rollthedice/backend/BackendApplicationTests.java similarity index 100% rename from backend/src/test/java/com/rollthedice/backend/BackendApplicationTests.java rename to backend/core/src/test/java/com/rollthedice/backend/BackendApplicationTests.java diff --git a/backend/src/main/resources/application.properties b/backend/src/main/resources/application.properties deleted file mode 100644 index 8b137891..00000000 --- a/backend/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -