Is there an equivalent of npm install for Gradle?
I wanted to cache layers of my Gradle build. Normally if it was an npm project I would do this
FROM node
COPY package.json package-lock.json .
RUN npm install # at this point the dependencies are downloaded
COPY src/ src/
RUN npm run build
So I am trying to do it the same way but with Gradle
FROM gradle:jdk12 AS build
COPY *.gradle .
RUN ????
COPY src/ src/
RUN gradle build