Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
javadance opened this issue Apr 6, 2024 · 1 comment
Open

Comments

@javadance
Copy link

javadance commented Apr 6, 2024

Hello,

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

스크린샷 2024-04-06 오후 2 02 43
@javadance javadance changed the title Failed to build - Chapter11 client module Failed to build - Chapter11 client & server module Apr 6, 2024
@javadance javadance changed the title Failed to build - Chapter11 client & server module Failed to build - Chapter11 & Chapter12 client & server module Apr 6, 2024
@sharmasourabh
Copy link
Collaborator

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants