- 💝 SDK:
- 💝 Plugin: ApiHug - API design Copilot
Pass by flag -DonlyProto=true
to build proto modules separately: gradlew clean build -x test -x wireTest -DonlyProto=true
(remove the -x stubTest
as only application modules has this task).
#windows
./gradlew.bat clean build -x test -x wireTest -x stubTest
#others
sh gradlew clean build -x test -x wireTest -x stubTest
#windows
./gradlew.bat demo-app-proto:clean wire build -x test -x wireTest
#others
sh gradlew demo-app-proto:clean wire build -x test -x wireTest
Build proto ONLY, check settings.gradle for detail, pass -DonlyProto=true
:
#windows
./gradlew.bat clean build -x test -x wireTest -DonlyProto=true
#others
sh gradlew clean build -x test -x wireTest -DonlyProto=true
Everytime you update application's dependence proto libraries, please run this command to re-generate your stubs.
#windows
./gradlew.bat demo-app:clean stub build -x test -x stubTest
Lite compile quick(since 0.7.8-RELEASE default as true, you can switch to false
manually -Dlite=false
:
#windows
./gradlew.bat demo-app:clean stub build -x test -x stubTest
#others
sh gradlew demo-app:clean stub build -x test -x stubTest
Lite compile quick:
#others
sh gradlew demo-app:clean stub build -x test -x stubTest -Dlite=true
#windows
./gradlew.bat demo-app:bootRun
#others
sh gradlew demo-app:bootRun
👍Then just kick off the application, in logger output you will find:
Application 'demo-app' is running! Access URLs:
Local http://localhost:18899/
External http://192.168.0.1:18899/
OAS http://192.168.0.1:18899/v3/api-docs
Actuator http://192.168.0.1:18899/management
Profile(s) dev
🥳 Congratulations! You have successfully started your application!
For further reference, please consider the following sections: