microservices-patterns / ftgo-application

Example code for the book Microservice patterns
Other
3.35k stars 1.29k forks source link

compileJava failure in ftgo-delivery-service using Java 19.0.1 #169

Closed GregoryWalters closed 1 year ago

GregoryWalters commented 1 year ago

If I need to use a different Java version, that is not a problem. Just let me know which is best.

I down graded to Java 1.8 and got it to work. This can be closed.

ftgo-application>gradlew buildContracts assemble

Task :buildSrc:compileGroovy Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

Task :ftgo-common:compileJava Note: C:\ftgo-application\ftgo-common\src\main\java\net\chrisrichardson\ftgo\common\MoneyModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :ftgo-api-gateway:compileJava Note: C:\ftgo-application\ftgo-api-gateway\src\main\java\net\chrisrichardson\ftgo\apiagateway\orders\OrderHandlers.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :ftgo-delivery-service:ftgoJSONSchemaToPojoCodeGenFtgoRestaurantService FAILED

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 42s 38 actionable tasks: 38 executed

C:\ftgo-application>java -version java version "19.0.1" 2022-10-18 Java(TM) SE Runtime Environment (build 19.0.1+10-21) Java HotSpot(TM) 64-Bit Server VM (build 19.0.1+10-21, mixed mode, sharing)

cer commented 1 year ago

"I down graded to Java 1.8 and got it to work. This can be closed."