-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Package.swift
118 lines (114 loc) · 6.46 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
// swift-tools-version:6.0
// Copyright Dave Verwer, Sven A. Schmidt, and other contributors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import PackageDescription
let package = Package(
name: "SPI-Server",
platforms: [
.macOS(.v13)
],
products: [
.executable(name: "Run", targets: ["Run"]),
.library(name: "Authentication", targets: ["Authentication"]),
.library(name: "S3Store", targets: ["S3Store"]),
],
dependencies: [
.package(url: "https://github.com/0xLeif/Cache.git", from: "2.1.0"),
.package(url: "https://github.com/JohnSundell/Ink.git", from: "0.5.1"),
.package(url: "https://github.com/swift-server/swift-prometheus.git", from: "1.0.0"),
.package(url: "https://github.com/SwiftPackageIndex/Plot.git", branch: "main"),
.package(url: "https://github.com/SwiftPackageIndex/CanonicalPackageURL.git", from: "0.0.8"),
.package(url: "https://github.com/SwiftPackageIndex/DependencyResolution.git", from: "1.1.2"),
.package(url: "https://github.com/SwiftPackageIndex/SPIManifest.git", from: "1.2.0"),
.package(url: "https://github.com/SwiftPackageIndex/SemanticVersion.git", from: "0.3.0"),
.package(url: "https://github.com/SwiftPackageIndex/ShellOut.git", from: "3.1.4"),
.package(url: "https://github.com/swiftlang/swift-package-manager.git", branch: "release/5.10"),
.package(url: "https://github.com/dankinsoid/VaporToOpenAPI.git", from: "4.4.4"),
.package(url: "https://github.com/pointfreeco/swift-custom-dump.git", from: "1.0.0"),
.package(url: "https://github.com/pointfreeco/swift-dependencies", from: "1.5.2"),
.package(url: "https://github.com/pointfreeco/swift-parsing.git", from: "0.12.0"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing.git", from: "1.11.1"),
.package(url: "https://github.com/scinfu/SwiftSoup.git", from: "2.3.2"),
.package(url: "https://github.com/soto-project/soto.git", from: "6.0.0"),
.package(url: "https://github.com/vapor-community/soto-cognito-authentication.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.0.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.0.0"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.13.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.102.0"),
],
targets: [
.executableTarget(name: "Run", dependencies: ["App"]),
.target(name: "App",
dependencies: [
.target(name: "Authentication"),
.target(name: "S3Store"),
.product(name: "Ink", package: "Ink"),
.product(name: "Plot", package: "Plot"),
.product(name: "SwiftPrometheus", package: "swift-prometheus"),
.product(name: "SPIManifest", package: "SPIManifest"),
.product(name: "SemanticVersion", package: "SemanticVersion"),
.product(name: "SwiftSoup", package: "SwiftSoup"),
.product(name: "Cache", package: "cache"),
.product(name: "CanonicalPackageURL", package: "CanonicalPackageURL"),
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "Dependencies", package: "swift-dependencies"),
.product(name: "DependenciesMacros", package: "swift-dependencies"),
.product(name: "DependencyResolution", package: "DependencyResolution"),
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
.product(name: "Parsing", package: "swift-parsing"),
.product(name: "ShellOut", package: "ShellOut"),
.product(name: "SwiftPMDataModel-auto", package: "swift-package-manager"),
.product(name: "SwiftPMPackageCollections", package: "swift-package-manager"),
.product(name: "Vapor", package: "vapor"),
.product(name: "VaporToOpenAPI", package: "VaporToOpenAPI"),
.product(name: "SotoCognitoAuthentication", package: "soto-cognito-authentication")
],
swiftSettings: swiftSettings,
linkerSettings: [.unsafeFlags(["-Xlinker", "-interposable"],
.when(platforms: [.macOS],
configuration: .debug))]),
.target(name: "S3Store",
dependencies: [
.product(name: "SotoS3", package: "soto"),
],
swiftSettings: swiftSettings),
.target(name: "Authentication",
dependencies: [
.product(name: "JWTKit", package: "jwt-kit")
],
swiftSettings: swiftSettings),
.testTarget(name: "AppTests",
dependencies: [
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
.product(name: "XCTVapor", package: "vapor"),
.target(name: "App"),
],
exclude: ["__Snapshots__", "Fixtures"],
swiftSettings: swiftSettings),
.testTarget(name: "AuthenticationTests",
dependencies: [
.target(name: "Authentication"),
],
swiftSettings: swiftSettings),
.testTarget(name: "S3StoreTests",
dependencies: [
.target(name: "S3Store"),
],
swiftSettings: swiftSettings)
],
swiftLanguageModes: [.v6]
)
var swiftSettings: [SwiftSetting] { [] }