Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: streamline openapi-generate-java-classes Makefile target #6578

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,28 +43,19 @@ openapi-generate-java-classes:
# Test dependency needed for model de/serialization validation
mvn $(MAVEN_ARGS) clean install -pl . -pl zjsonpatch
cd kubernetes-model-generator && mvn $(MAVEN_ARGS) -Pgenerate clean install
# TODO: run generate from extensions module root once all extensions are migrated
cd extensions && mvn $(MAVEN_ARGS) -N clean install
cd extensions/certmanager && mvn $(MAVEN_ARGS) -N clean install
cd extensions/certmanager/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/chaosmesh && mvn $(MAVEN_ARGS) -N clean install
cd extensions/chaosmesh/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/istio && mvn $(MAVEN_ARGS) -N clean install
cd extensions/istio/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/knative && mvn $(MAVEN_ARGS) -N clean install
cd extensions/knative/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/open-virtual-network && mvn $(MAVEN_ARGS) -N clean install
cd extensions/open-virtual-network/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/open-cluster-management && mvn $(MAVEN_ARGS) -N clean install
cd extensions/open-cluster-management/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/tekton && mvn $(MAVEN_ARGS) -N clean install
cd extensions/tekton/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/verticalpodautoscaler && mvn $(MAVEN_ARGS) -N clean install
cd extensions/verticalpodautoscaler/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/volcano && mvn $(MAVEN_ARGS) -N clean install
cd extensions/volcano/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions/volumesnapshot && mvn $(MAVEN_ARGS) -N clean install
cd extensions/volumesnapshot/model && mvn $(MAVEN_ARGS) -Pgenerate clean install
cd extensions && mvn $(MAVEN_ARGS) \
-pl . \
-pl certmanager/model \
-pl chaosmesh/model \
-pl istio/model \
-pl knative/model \
-pl open-cluster-management/model \
-pl open-virtual-network/model \
-pl tekton/model \
-pl verticalpodautoscaler/model \
-pl volcano/model \
-pl volumesnapshot/model \
-Pgenerate clean install

.PHONY: generate-model
generate-model: openapi-generate-schema openapi-generate-java-classes
Expand Down
Loading