gradle: bootRun 명령 실행

 kchabin@gangdabin-ui-MacBookPro  ~/Desktop/spring-textbook/spring-batch  gradle :bootRun

Welcome to Gradle 8.10!

Here are the highlights of this release:
 - Support for Java 23
 - Faster configuration cache
 - Better configuration cache reports

For more details see <https://docs.gradle.org/8.10/release-notes.html>

Starting a Gradle Daemon (subsequent builds will be faster)

> Task :bootRun FAILED

  .   ____          _            __ _ _
 /\\\\ / ___'_ __ _ _(_)_ __  __ _ \\ \\ \\ \\
( ( )\\___ | '_ | '_| | '_ \\/ _` | \\ \\ \\ \\
 \\\\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.3.4)

2024-09-27T17:55:11.761+09:00  INFO 3865 --- [spring-batch] [           main] o.k.springbatch.SpringBatchApplication   : Starting SpringBatchApplication using Java 17.0.7 with PID 3865 (/Users/kchabin/Desktop/spring-textbook/spring-batch/build/classes/java/main started by kchabin in /Users/kchabin/Desktop/spring-textbook/spring-batch)
2024-09-27T17:55:11.763+09:00  INFO 3865 --- [spring-batch] [           main] o.k.springbatch.SpringBatchApplication   : No active profile set, falling back to 1 default profile: "default"
2024-09-27T17:55:11.862+09:00  INFO 3865 --- [spring-batch] [           main] o.s.b.c.c.annotation.BatchRegistrar      : Finished Spring Batch infrastructure beans configuration in 1 ms.
2024-09-27T17:55:11.932+09:00  WARN 3865 --- [spring-batch] [           main] trationDelegate$BeanPostProcessorChecker : Bean 'jobRegistry' of type [org.springframework.batch.core.configuration.support.MapJobRegistry] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [jobRegistryBeanPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-09-27T17:55:11.946+09:00  WARN 3865 --- [spring-batch] [           main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataSourceScriptDatabaseInitializer' defined in class path resource [org/springframework/boot/autoconfigure/sql/init/DataSourceInitializationConfiguration.class]: Unsatisfied dependency expressed through method 'dataSourceScriptDatabaseInitializer' parameter 0: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class
2024-09-27T17:55:11.950+09:00  INFO 3865 --- [spring-batch] [           main] .s.b.a.l.ConditionEvaluationReportLogger : 

Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2024-09-27T17:55:11.954+09:00 ERROR 3865 --- [spring-batch] [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

**Reason: Failed to determine a suitable driver class**

Action:

Consider the following:
        If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
        If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootRun'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at <https://help.gradle.org>.

BUILD FAILED in 9s
4 actionable tasks: 4 executed

H2 Database

HSQL

경량 데이터베이스

Apache Derby

스크린샷 2024-09-27 오후 6.12.40.png

다시 gradle : bootRun 실행 → 빌드 성공

스크린샷 2024-09-27 오후 6.13.16.png