PacktPublishing / Modern-API-Development-with-Spring-6-and-Spring-Boot-3

Modern API Development with Spring 6 and Spring Boot 3, Published by Packt
MIT License
37 stars 47 forks source link

Failed to build - Chapter11 & Chapter12 client & server module #7

Open javadance opened 6 months ago

javadance commented 6 months ago

Hello,

I got another failure. Please check below image. I succeeded in building api module.

스크린샷 2024-04-06 오후 2 02 43
sharmasourabh commented 6 months ago

@javadance You might have missed to publish the payment-gateway-api to maven repo (local).

Please follow the steps as shown below:

(base) $ pwd                                                              
/Users/sourabh/Modern-API-Development-with-Spring-6-and-Spring-Boot-3/Chapter11
(base) $ cd api 
(base) $ ls ~/.m2/repository/com/packt/modern/api/payment-gateway-api/    
ls: /Users/sourabh/.m2/repository/com/packt/modern/api/payment-gateway-api/: No such file or directory
(base) $ export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"              
(base) $ ./gradlew clean publishToMavenLocal

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8
Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 13s
10 actionable tasks: 10 executed
(base) $ ls ~/.m2/repository/com/packt/modern/api/payment-gateway-api/
0.0.1               maven-metadata-local.xml
(base) $ cd ../server 
(base) $ ./gradlew clean build
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

> Task :test
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 6s
8 actionable tasks: 8 executed
(base) $ cd ../client 
(base) $ ./gradlew clean build
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

> Task :test
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 3s