Skip to content

Java detection is not working for microservices monorepo demo #391

Open
@prabhu

Description

@prabhu

https://github.com/GoogleCloudPlatform/microservices-demo

Executing /home/almalinux/.sdkman/candidates/gradle/current/bin/gradle properties -q --console plain --build-cache in /home/almalinux/work/sandbox/microservices-demo

FAILURE: Build failed with an exception.

* What went wrong:
Directory '/home/almalinux/work/sandbox/microservices-demo' does not contain a Gradle build.

A Gradle build should contain a 'settings.gradle' or 'settings.gradle.kts' file in its root directory. It may also contain a 'build.gradle' or 'build.gradle.kts' file.

To create a new Gradle build in this directory run 'gradle init'

For more detail on the 'init' task see https://docs.gradle.org/8.1.1/userguide/build_init_plugin.html

For more detail on creating a Gradle build see https://docs.gradle.org/8.1.1/userguide/tutorial_using_tasks.html

* Try:
> Run gradle init to create a new Gradle build in this directory.
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

1. Check if the correct version of java and gradle are installed and available in PATH. For example, some project might require Java 11 with gradle 7.
 cdxgen container image bundles Java 19 with gradle 8 which might be incompatible.
Executing /home/almalinux/.sdkman/candidates/gradle/current/bin/gradle dependencies -q --console plain --build-cache in /home/almalinux/work/sandbox/microservices-demo
No packages found. Set the environment variable 'CDXGEN_DEBUG_MODE=debug' to troubleshoot any gradle related errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions