1212
1313VERSION = 0.5.2
1414
15+ .PHONY : clean-async-client
16+ clean-async-client :
17+ rm -rf lance-namespace-async-client
18+
19+ .PHONY : gen-async-client
20+ gen-async-client : clean-async-client
21+ uv run openapi-generator-cli generate \
22+ -i ../docs/src/rest.yaml \
23+ -g java \
24+ -o lance-namespace-async-client \
25+ --ignore-file-override=.async-client-ignore \
26+ --type-mappings=file=byte[] \
27+ --additional-properties=groupId=org.lance,artifactId=lance-namespace-async-client,artifactVersion=$(VERSION ) ,parentGroupId=org.lance,parentArtifactId=lance-namespace-root,parentVersion=$(VERSION ) ,parentRelativePath=pom.xml,library=native,asyncNative=true,apiPackage=org.lance.namespace.client.async.api,modelPackage=org.lance.namespace.model,hideGenerationTimestamp=true,licenseName=Apache-2.0,licenseUrl=https://www.apache.org/licenses/LICENSE-2.0.txt
28+ rm -rf lance-namespace-async-client/.openapi-generator-ignore
29+ rm -rf lance-namespace-async-client/.openapi-generator
30+ rm -rf lance-namespace-async-client/pom.xml
31+ cp async-client-pom.xml lance-namespace-async-client/pom.xml
32+
33+ .PHONY : lint-async-client
34+ lint-async-client : gen-async-client
35+ ./mvnw spotless:apply -pl lance-namespace-async-client -am
36+
37+ .PHONY : build-async-client
38+ build-async-client : gen-async-client lint-async-client
39+ ./mvnw install -pl lance-namespace-async-client -am
40+
41+ .PHONY : check-async-client
42+ check-async-client :
43+ ./mvnw checkstyle:check spotless:check -pl lance-namespace-async-client -am
44+
1545.PHONY : clean-apache-client
1646clean-apache-client :
1747 rm -rf lance-namespace-apache-client
@@ -75,11 +105,24 @@ build-core: build-apache-client lint-core
75105check-core :
76106 ./mvnw checkstyle:check spotless:check -pl lance-namespace-core -am
77107
108+ # lance-namespace-core-async module (hand-written, no codegen)
109+ .PHONY : lint-core-async
110+ lint-core-async : gen-async-client
111+ ./mvnw spotless:apply -pl lance-namespace-core-async -am
112+
113+ .PHONY : build-core-async
114+ build-core-async : build-async-client lint-core-async
115+ ./mvnw install -pl lance-namespace-core-async -am
116+
117+ .PHONY : check-core-async
118+ check-core-async :
119+ ./mvnw checkstyle:check spotless:check -pl lance-namespace-core-async -am
120+
78121.PHONY : clean
79- clean : clean-apache-client clean-springboot-server
122+ clean : clean-apache-client clean-async-client clean- springboot-server
80123
81124.PHONY : gen
82- gen : gen-apache-client gen-springboot-server lint-apache-client lint-springboot-server
125+ gen : gen-apache-client gen-async-client gen- springboot-server lint-apache-client lint-async -client lint-springboot-server
83126
84127.PHONY : check-apache-client
85128check-apache-client :
@@ -90,10 +133,10 @@ check-springboot-server:
90133 ./mvnw checkstyle:check spotless:check -pl lance-namespace-springboot-server -am
91134
92135.PHONY : check
93- check : check-apache-client check-springboot-server check-core
136+ check : check-apache-client check-async-client check- springboot-server check-core check-core-async
94137
95138.PHONY : lint
96- lint : lint-apache-client lint-springboot-server lint-core
139+ lint : lint-apache-client lint-async-client lint- springboot-server lint-core lint-core-async
97140
98141.PHONY : build
99- build : build-apache-client build-springboot-server build-core
142+ build : build-apache-client build-async-client build- springboot-server build-core build-core-async
0 commit comments