Skip to content

Unable to Build Server Module #14

@kairon007

Description

@kairon007

cd backend
then tried to execute
docker build -t memzy .
Getting the following stacktrace

`0.997 Daemon will be stopped at the end of the build
14.09
14.09 > Configure project :
14.09 e: /home/gradle/src/build.gradle.kts:5:11: Unresolved reference: libs
14.09
14.09 FAILURE: Build failed with an exception.
14.09
14.09 * Where:
14.09 Build file '/home/gradle/src/build.gradle.kts' line: 5
14.09
14.09 * What went wrong:
14.09 Script compilation error:
14.09
14.09 Line 5: alias(libs.plugins.shadow)
14.09 ^ Unresolved reference: libs
14.09
14.09 1 error
14.09
14.09 * Try:
14.09 > Run with --stacktrace option to get the stack trace.
14.09 > Run with --info or --debug option to get more log output.
14.09 > Run with --scan to get full insights.
14.09
14.09 * Get more help at https://help.gradle.org
14.09
14.09 BUILD FAILED in 13s

Dockerfile:4

2 | COPY --chown=gradle:gradle . /home/gradle/src
3 | WORKDIR /home/gradle/src
4 | >>> RUN gradle shadowJar --no-daemon
5 |
6 | FROM openjdk:11

ERROR: failed to solve: process "/bin/sh -c gradle shadowJar --no-daemon" did not complete successfully: exit code: 1
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions