-
Notifications
You must be signed in to change notification settings - Fork 14
Gradle tasks
Cezary Kluczyński edited this page Dec 16, 2022
·
9 revisions
This page lists custom Gradle tasks, or tasks which usage is hard to remember.
Task for generating scaffold code. After running the task, code will not compile and has to be corrected by hand, but some time could be saved this way. Two following parameters can be passed:
- -PsourceEntityName - entity from which files will be copied.
- -PtargetEntityName - entity to create.
- -PscaffoldType (optional) - type of code to copy. Could be endpoint or etl. Default to endpoint.
Example usage:
gradle -PsourceEntityName=Comics -PtargetEntityName=ComicStrip -PscaffoldType=endpoint codeGen
Task that create docker image of a given version locally. Syntax:
./gradlew server:dockerize --version=2022-12
After that, a docker push is required (with right privileges of course):
docker push cezarykluczynski/stapi:2022-12
docker push cezarykluczynski/stapi:latest