8000 Building in github actions for linux/arm/v7 with buildx fails due to missing module 'ant' · Issue #210 · keeganwitt/docker-gradle · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Building in github actions for linux/arm/v7 with buildx fails due to missing module 'ant' #210
Open
@adamsong

Description

@adamsong

Full stack trace:

#10 1.985 org.gradle.api.internal.classpath.UnknownModuleException: Cannot locate JAR for module 'ant' in distribution directory '/opt/gradle'.
#10 1.987 	at org.gradle.api.internal.classpath.DefaultModuleRegistry.loadExternalModule(DefaultModuleRegistry.java:109)
#10 1.987 	at org.gradle.api.internal.classpath.DefaultModuleRegistry.getExternalModule(DefaultModuleRegistry.java:97)
#10 1.987 	at org.gradle.api.internal.DefaultClassPathProvider.findClassPath(DefaultClassPathProvider.java:70)
#10 1.988 	at org.gradle.api.internal.DefaultClassPathRegistry.getClassPath(DefaultClassPathRegistry.java:35)
#10 1.988 	at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:48)
#10 1.988 	at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
#10 1.988 	at org.gradle.launcher.GradleMain.main(GradleMain.java:31)

Docker file

FROM gradle:7.3.3-jdk17 AS build
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build --no-daemon

# Yes, this is the same base image as before, unfortunately I cannot find an arm/v7 JRE17 image
FROM gradle:7.3.3-jdk17
RUN mkdir /app
COPY --from=build /home/gradle/src/build/libs/*.jar /app/GhostBot.jar
ENTRYPOINT ["java", "-jar", "/app/GhostBot.jar"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0