I've created a micronaut application using
mn create-app my-app
It generated the project structure with a Dockerfile. The docker file is looking for the file my-app-*-all.jar
to copy.
FROM openjdk:14-alpine
COPY build/libs/my-app-*-all.jar my-app.jar
EXPOSE 8080
CMD ["java", "-Dcom.sun.management.jmxremote", "-Xmx128m", "-jar", "my-app.jar"]
How do I generate the my-app-*-all.jar?
./gradlew jar
is not generating the (-all) jar.
EDITED: It's only generating my-app-0.1.jar
, and when I use that jar, it is giving an error.
no main manifest attribute, in build/libs/my-app-0.1.jar
Do I need to add any additional lines in build.gradle file?