|
4 | 4 | import PackageDescription |
5 | 5 |
|
6 | 6 | let package = Package( |
7 | | - name: "QuoteService", |
8 | | - platforms: [ |
9 | | - .macOS(.v13), .iOS(.v15), .tvOS(.v15), .watchOS(.v6), |
10 | | - ], |
11 | | - products: [ |
12 | | - .executable(name: "QuoteService", targets: ["QuoteService"]), |
13 | | - ], |
14 | | - dependencies: [ |
15 | | - .package(url: "https://github.com/apple/swift-openapi-generator.git", from: "1.4.0"), |
16 | | - .package(url: "https://github.com/apple/swift-openapi-runtime.git", from: "1.5.0"), |
17 | | - .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.3"), |
18 | | - .package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.4.0"), |
19 | | - .package(url: "https://github.com/swift-server/swift-openapi-lambda.git", from: "0.2.0") |
20 | | - // .package(name: "swift-openapi-lambda", path: "../swift-openapi-lambda") |
21 | | - ], |
22 | | - targets: [ |
23 | | - .executableTarget( |
24 | | - name: "QuoteService", |
25 | | - dependencies: [ |
26 | | - .product(name: "OpenAPIRuntime",package: "swift-openapi-runtime"), |
27 | | - .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), |
28 | | - .product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"), |
29 | | - .product(name: "OpenAPILambda",package: "swift-openapi-lambda"), |
30 | | - ], |
31 | | - path: "Sources", |
32 | | - resources: [ |
33 | | - .copy("openapi.yaml"), |
34 | | - .copy("openapi-generator-config.yaml") |
35 | | - ], |
36 | | - plugins: [ |
37 | | - .plugin( |
38 | | - name: "OpenAPIGenerator", |
39 | | - package: "swift-openapi-generator" |
| 7 | + name: "QuoteService", |
| 8 | + platforms: [ |
| 9 | + .macOS(.v13), .iOS(.v15), .tvOS(.v15), .watchOS(.v6), |
| 10 | + ], |
| 11 | + products: [ |
| 12 | + .executable(name: "QuoteService", targets: ["QuoteService"]) |
| 13 | + ], |
| 14 | + dependencies: [ |
| 15 | + .package(url: "https://github.com/apple/swift-openapi-generator.git", from: "1.4.0"), |
| 16 | + .package(url: "https://github.com/apple/swift-openapi-runtime.git", from: "1.5.0"), |
| 17 | + .package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.3"), |
| 18 | + .package(url: "https://github.com/swift-server/swift-aws-lambda-events.git", from: "0.4.0"), |
| 19 | + .package(url: "https://github.com/swift-server/swift-openapi-lambda.git", from: "0.2.0"), |
| 20 | + // .package(name: "swift-openapi-lambda", path: "../swift-openapi-lambda") |
| 21 | + ], |
| 22 | + targets: [ |
| 23 | + .executableTarget( |
| 24 | + name: "QuoteService", |
| 25 | + dependencies: [ |
| 26 | + .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), |
| 27 | + .product(name: "AWSLambdaRuntime", package: "swift-aws-lambda-runtime"), |
| 28 | + .product(name: "AWSLambdaEvents", package: "swift-aws-lambda-events"), |
| 29 | + .product(name: "OpenAPILambda", package: "swift-openapi-lambda"), |
| 30 | + ], |
| 31 | + path: "Sources", |
| 32 | + resources: [ |
| 33 | + .copy("openapi.yaml"), |
| 34 | + .copy("openapi-generator-config.yaml"), |
| 35 | + ], |
| 36 | + plugins: [ |
| 37 | + .plugin( |
| 38 | + name: "OpenAPIGenerator", |
| 39 | + package: "swift-openapi-generator" |
| 40 | + ) |
| 41 | + ] |
40 | 42 | ) |
41 | | - ] |
42 | | - ) |
43 | | - ] |
| 43 | + ] |
44 | 44 | ) |
0 commit comments