diff --git a/.gradle/8.5/fileHashes/fileHashes.lock b/.gradle/8.5/fileHashes/fileHashes.lock index 45808940..8369450a 100644 Binary files a/.gradle/8.5/fileHashes/fileHashes.lock and b/.gradle/8.5/fileHashes/fileHashes.lock differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index c756ba30..7fc88474 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/Dockerfile b/Dockerfile index 4603a614..56902a46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ FROM openjdk:19-alpine -ARG JAR_PATH=build/libs/chatdiary-0.0.1-SNAPSHOT.jar +ARG JAR_PATH=build/libs/*.jar COPY ${JAR_PATH} /home/server.jar ENTRYPOINT ["java","-jar","/home/server.jar"] \ No newline at end of file diff --git a/build.gradle b/build.gradle index 09324833..e845c0fd 100644 --- a/build.gradle +++ b/build.gradle @@ -36,10 +36,6 @@ tasks.named('test') { useJUnitPlatform() } -bootJar { - enabled = true -} - jar { enabled = false } diff --git a/build/reports/tests/test/classes/com.kuit.chatdiary.ChatdiaryApplicationTests.html b/build/reports/tests/test/classes/com.kuit.chatdiary.ChatdiaryApplicationTests.html index 9e2ce1d2..085e41a3 100644 --- a/build/reports/tests/test/classes/com.kuit.chatdiary.ChatdiaryApplicationTests.html +++ b/build/reports/tests/test/classes/com.kuit.chatdiary.ChatdiaryApplicationTests.html @@ -41,7 +41,7 @@
duration
22:02:26.666 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] -22:02:26.671 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] -22:02:26.681 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.kuit.chatdiary.ChatdiaryApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] -22:02:26.684 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.kuit.chatdiary.ChatdiaryApplicationTests], using SpringBootContextLoader -22:02:26.685 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: class path resource [com/kuit/chatdiary/ChatdiaryApplicationTests-context.xml] does not exist -22:02:26.685 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: class path resource [com/kuit/chatdiary/ChatdiaryApplicationTestsContext.groovy] does not exist -22:02:26.686 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}. -22:02:26.686 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: ChatdiaryApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. -22:02:26.698 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.kuit.chatdiary.ChatdiaryApplicationTests] -22:02:26.713 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/munhyeonjun/Desktop/BE/build/classes/java/main/com/kuit/chatdiary/ChatdiaryApplication.class] -22:02:26.714 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.kuit.chatdiary.ChatdiaryApplication for test class com.kuit.chatdiary.ChatdiaryApplicationTests -22:02:26.746 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.kuit.chatdiary.ChatdiaryApplicationTests]: using defaults. -22:02:26.746 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] -22:02:26.749 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource] -22:02:26.749 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute] -22:02:26.750 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@596df867, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@c1fca1e, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@241a53ef, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@344344fa, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@2db2cd5, org.springframework.test.context.support.DirtiesContextTestExecutionListener@70e659aa, org.springframework.test.context.event.EventPublishingTestExecutionListener@615f972, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@285f09de, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@73393584, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@31500940, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@1827a871, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@48e64352, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@7249dadf] -22:02:26.751 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@77b7ffa4 testClass = ChatdiaryApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@5ed190be testClass = ChatdiaryApplicationTests, locations = '{}', classes = '{class com.kuit.chatdiary.ChatdiaryApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@698122b2, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@5e81e5ac, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@6035b93b, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@abf688e, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@607fbe09, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@4808bc9b], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null]. -22:02:26.761 [Test worker] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true} +23:46:46.386 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate] +23:46:46.392 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)] +23:46:46.408 [Test worker] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.kuit.chatdiary.ChatdiaryApplicationTests] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper] +23:46:46.413 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.kuit.chatdiary.ChatdiaryApplicationTests], using SpringBootContextLoader +23:46:46.415 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: class path resource [com/kuit/chatdiary/ChatdiaryApplicationTests-context.xml] does not exist +23:46:46.415 [Test worker] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: class path resource [com/kuit/chatdiary/ChatdiaryApplicationTestsContext.groovy] does not exist +23:46:46.415 [Test worker] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: no resource found for suffixes {-context.xml, Context.groovy}. +23:46:46.415 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.kuit.chatdiary.ChatdiaryApplicationTests]: ChatdiaryApplicationTests does not declare any static, non-private, non-final, nested classes annotated with @Configuration. +23:46:46.433 [Test worker] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an 'annotation declaring class' for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.kuit.chatdiary.ChatdiaryApplicationTests] +23:46:46.457 [Test worker] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/leehyunhee/IdeaProjects/BE2/build/classes/java/main/com/kuit/chatdiary/ChatdiaryApplication.class] +23:46:46.458 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.kuit.chatdiary.ChatdiaryApplication for test class com.kuit.chatdiary.ChatdiaryApplicationTests +23:46:46.498 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.kuit.chatdiary.ChatdiaryApplicationTests]: using defaults. +23:46:46.499 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.event.ApplicationEventsTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener, org.springframework.test.context.event.EventPublishingTestExecutionListener] +23:46:46.504 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttributeSource] +23:46:46.504 [Test worker] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Skipping candidate TestExecutionListener [org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener] due to a missing dependency. Specify custom listener classes or make the default listener classes and their required dependencies available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute] +23:46:46.504 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@10c626be, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@2fc0cc3, org.springframework.test.context.event.ApplicationEventsTestExecutionListener@328cf0e1, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@63b1d4fa, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@42e3ede4, org.springframework.test.context.support.DirtiesContextTestExecutionListener@201b6b6f, org.springframework.test.context.event.EventPublishingTestExecutionListener@75459c75, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@183e8023, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@45efc20d, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3e5499cc, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@67ab1c47, org.springframework.boot.test.autoconfigure.webservices.client.MockWebServiceServerTestExecutionListener@b78a709, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@30bcf3c1] +23:46:46.506 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@53812a9b testClass = ChatdiaryApplicationTests, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@14b030a0 testClass = ChatdiaryApplicationTests, locations = '{}', classes = '{class com.kuit.chatdiary.ChatdiaryApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@6f19ac19, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@44d52de2, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@babafc2, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@600b9d27, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@36cda2c2, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@49e5f737], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true]], class annotated with @DirtiesContext [false] with mode [null]. +23:46:46.520 [Test worker] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true} . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ @@ -114,9 +114,9 @@Standard output
=========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.5.5) -2023-12-31 22:02:26.865 INFO 3684 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Starting ChatdiaryApplicationTests using Java 15.0.10 on munhyeonjuns-MacBook-Pro.local with PID 3684 (started by munhyeonjun in /Users/munhyeonjun/Desktop/BE) -2023-12-31 22:02:26.865 INFO 3684 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : The following profiles are active: local -2023-12-31 22:02:27.277 INFO 3684 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Started ChatdiaryApplicationTests in 0.512 seconds (JVM running for 0.887) +2024-01-01 23:46:46.683 INFO 94903 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Starting ChatdiaryApplicationTests using Java 17.0.8 on lees-MacBook-Pro.local with PID 94903 (started by leehyunhee in /Users/leehyunhee/IdeaProjects/BE2) +2024-01-01 23:46:46.684 INFO 94903 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : The following profiles are active: local +2024-01-01 23:46:47.287 INFO 94903 --- [ Test worker] c.k.chatdiary.ChatdiaryApplicationTests : Started ChatdiaryApplicationTests in 0.764 seconds (JVM running for 1.269)