@@ -40,150 +40,6 @@ index 0000000..690b968
4040+ name = "create_build_files",
4141+ gazelle = ":gazelle_bin",
4242+ )
43- diff --git a/Examples/GreetingService/Sources/GreetingService/BUILD.bazel b/Examples/GreetingService/Sources/GreetingService/BUILD.bazel
44- new file mode 100644
45- index 0000000..1367c56
46- --- /dev/null
47- +++ b/Examples/GreetingService/Sources/GreetingService/BUILD.bazel
48- @@ -0,0 +1,9 @@
49- + load("@rules_swift//swift:swift.bzl", "swift_binary")
50- +
51- + swift_binary(
52- + name = "GreetingService",
53- + srcs = ["GreetingService.swift"],
54- + module_name = "GreetingService",
55- + visibility = ["//visibility:public"],
56- + deps = ["@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime"],
57- + )
58- diff --git a/Examples/GreetingService/Tests/GreetingServiceMockTests/BUILD.bazel b/Examples/GreetingService/Tests/GreetingServiceMockTests/BUILD.bazel
59- new file mode 100644
60- index 0000000..a6d13fc
61- --- /dev/null
62- +++ b/Examples/GreetingService/Tests/GreetingServiceMockTests/BUILD.bazel
63- @@ -0,0 +1,11 @@
64- + load("@rules_swift//swift:swift.bzl", "swift_test")
65- +
66- + swift_test(
67- + name = "GreetingServiceMockTests",
68- + srcs = [
69- + "MockGreetingService.swift",
70- + "MockGreetingServiceTests.swift",
71- + ],
72- + module_name = "GreetingServiceMockTests",
73- + deps = ["//Examples/GreetingService/Sources/GreetingService"],
74- + )
75- diff --git a/Examples/GreetingServiceClient/Sources/GreetingServiceClient/BUILD.bazel b/Examples/GreetingServiceClient/Sources/GreetingServiceClient/BUILD.bazel
76- new file mode 100644
77- index 0000000..fcb5a1f
78- --- /dev/null
79- +++ b/Examples/GreetingServiceClient/Sources/GreetingServiceClient/BUILD.bazel
80- @@ -0,0 +1,9 @@
81- + load("@rules_swift//swift:swift.bzl", "swift_binary")
82- +
83- + swift_binary(
84- + name = "GreetingServiceClient",
85- + srcs = ["GreetingServiceClient.swift"],
86- + module_name = "GreetingServiceClient",
87- + visibility = ["//visibility:public"],
88- + deps = ["@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime"],
89- + )
90- diff --git a/Examples/GreetingServiceClient/Tests/GreetingServiceMockTests/BUILD.bazel b/Examples/GreetingServiceClient/Tests/GreetingServiceMockTests/BUILD.bazel
91- new file mode 100644
92- index 0000000..144d498
93- --- /dev/null
94- +++ b/Examples/GreetingServiceClient/Tests/GreetingServiceMockTests/BUILD.bazel
95- @@ -0,0 +1,11 @@
96- + load("@rules_swift//swift:swift.bzl", "swift_test")
97- +
98- + swift_test(
99- + name = "GreetingServiceMockTests",
100- + srcs = [
101- + "MockGreetingService.swift",
102- + "MockGreetingServiceTests.swift",
103- + ],
104- + module_name = "GreetingServiceMockTests",
105- + deps = ["//Examples/GreetingServiceClient/Sources/GreetingServiceClient"],
106- + )
107- diff --git a/IntegrationTest/Sources/Client/BUILD.bazel b/IntegrationTest/Sources/Client/BUILD.bazel
108- new file mode 100644
109- index 0000000..2e5bbe2
110- --- /dev/null
111- +++ b/IntegrationTest/Sources/Client/BUILD.bazel
112- @@ -0,0 +1,8 @@
113- + load("@rules_swift//swift:swift.bzl", "swift_library")
114- +
115- + swift_library(
116- + name = "Client",
117- + srcs = ["Empty.swift"],
118- + module_name = "Client",
119- + visibility = ["//visibility:public"],
120- + )
121- diff --git a/IntegrationTest/Sources/MockTransportClient/BUILD.bazel b/IntegrationTest/Sources/MockTransportClient/BUILD.bazel
122- new file mode 100644
123- index 0000000..99501ea
124- --- /dev/null
125- +++ b/IntegrationTest/Sources/MockTransportClient/BUILD.bazel
126- @@ -0,0 +1,13 @@
127- + load("@rules_swift//swift:swift.bzl", "swift_library")
128- +
129- + swift_library(
130- + name = "MockTransportClient",
131- + srcs = ["Client.swift"],
132- + module_name = "MockTransportClient",
133- + visibility = ["//visibility:public"],
134- + deps = [
135- + "//IntegrationTest/Sources/Client",
136- + "//IntegrationTest/Sources/Types",
137- + "@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime",
138- + ],
139- + )
140- diff --git a/IntegrationTest/Sources/MockTransportServer/BUILD.bazel b/IntegrationTest/Sources/MockTransportServer/BUILD.bazel
141- new file mode 100644
142- index 0000000..4716d60
143- --- /dev/null
144- +++ b/IntegrationTest/Sources/MockTransportServer/BUILD.bazel
145- @@ -0,0 +1,13 @@
146- + load("@rules_swift//swift:swift.bzl", "swift_library")
147- +
148- + swift_library(
149- + name = "MockTransportServer",
150- + srcs = ["Server.swift"],
151- + module_name = "MockTransportServer",
152- + visibility = ["//visibility:public"],
153- + deps = [
154- + "//IntegrationTest/Sources/Server",
155- + "//IntegrationTest/Sources/Types",
156- + "@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime",
157- + ],
158- + )
159- diff --git a/IntegrationTest/Sources/Server/BUILD.bazel b/IntegrationTest/Sources/Server/BUILD.bazel
160- new file mode 100644
161- index 0000000..dd8c037
162- --- /dev/null
163- +++ b/IntegrationTest/Sources/Server/BUILD.bazel
164- @@ -0,0 +1,8 @@
165- + load("@rules_swift//swift:swift.bzl", "swift_library")
166- +
167- + swift_library(
168- + name = "Server",
169- + srcs = ["Empty.swift"],
170- + module_name = "Server",
171- + visibility = ["//visibility:public"],
172- + )
173- diff --git a/IntegrationTest/Sources/Types/BUILD.bazel b/IntegrationTest/Sources/Types/BUILD.bazel
174- new file mode 100644
175- index 0000000..dccba42
176- --- /dev/null
177- +++ b/IntegrationTest/Sources/Types/BUILD.bazel
178- @@ -0,0 +1,8 @@
179- + load("@rules_swift//swift:swift.bzl", "swift_library")
180- +
181- + swift_library(
182- + name = "Types",
183- + srcs = ["Empty.swift"],
184- + module_name = "Types",
185- + visibility = ["//visibility:public"],
186- + )
18743diff --git a/Plugins/OpenAPIGenerator/BUILD.bazel b/Plugins/OpenAPIGenerator/BUILD.bazel
18844new file mode 100644
18945index 0000000..80c770f
@@ -231,10 +87,10 @@ index 0000000..6f45956
23187+ )
23288diff --git a/Sources/PetstoreConsumerTestCore/BUILD.bazel b/Sources/PetstoreConsumerTestCore/BUILD.bazel
23389new file mode 100644
234- index 0000000..22d7b4e
90+ index 0000000..5e01524
23591--- /dev/null
23692+++ b/Sources/PetstoreConsumerTestCore/BUILD.bazel
237- @@ -0,0 +1,14 @@
93+ @@ -0,0 +1,17 @@
23894+ load("@rules_swift//swift:swift.bzl", "swift_library")
23995+
24096+ swift_library(
@@ -247,7 +103,10 @@ index 0000000..22d7b4e
247103+ ],
248104+ module_name = "PetstoreConsumerTestCore",
249105+ visibility = ["//visibility:public"],
250- + deps = ["@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime"],
106+ + deps = [
107+ + "@swiftpkg_swift_http_types//:Sources_HTTPTypes",
108+ + "@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime",
109+ + ],
251110+ )
252111diff --git a/Sources/_OpenAPIGeneratorCore/BUILD.bazel b/Sources/_OpenAPIGeneratorCore/BUILD.bazel
253112new file mode 100644
@@ -429,10 +288,10 @@ index 0000000..8eaffd7
429288+ )
430289diff --git a/Tests/OpenAPIGeneratorReferenceTests/BUILD.bazel b/Tests/OpenAPIGeneratorReferenceTests/BUILD.bazel
431290new file mode 100644
432- index 0000000..9fc8868
291+ index 0000000..92de772
433292--- /dev/null
434293+++ b/Tests/OpenAPIGeneratorReferenceTests/BUILD.bazel
435- @@ -0,0 +1,20 @@
294+ @@ -0,0 +1,21 @@
436295+ load("@rules_swift//swift:swift.bzl", "swift_test")
437296+
438297+ swift_test(
@@ -449,16 +308,17 @@ index 0000000..9fc8868
449308+ module_name = "OpenAPIGeneratorReferenceTests",
450309+ deps = [
451310+ "@swiftpkg_openapikit//:Sources_OpenAPIKitCompat",
311+ + "@swiftpkg_swift_http_types//:Sources_HTTPTypes",
452312+ "@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime",
453313+ "@swiftpkg_yams//:Sources_Yams",
454314+ ],
455315+ )
456316diff --git a/Tests/PetstoreConsumerTests/BUILD.bazel b/Tests/PetstoreConsumerTests/BUILD.bazel
457317new file mode 100644
458- index 0000000..c870a2f
318+ index 0000000..be589f9
459319--- /dev/null
460320+++ b/Tests/PetstoreConsumerTests/BUILD.bazel
461- @@ -0,0 +1,20 @@
321+ @@ -0,0 +1,21 @@
462322+ load("@rules_swift//swift:swift.bzl", "swift_library")
463323+
464324+ swift_library(
@@ -476,6 +336,7 @@ index 0000000..c870a2f
476336+ visibility = ["//visibility:public"],
477337+ deps = [
478338+ "//Sources/PetstoreConsumerTestCore",
339+ + "@swiftpkg_swift_http_types//:Sources_HTTPTypes",
479340+ "@swiftpkg_swift_openapi_runtime//:Sources_OpenAPIRuntime",
480341+ ],
481342+ )
0 commit comments