forked from SwiftPackageIndex/SwiftPackageIndex-Server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
115 lines (112 loc) · 5.85 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
// swift-tools-version:5.10
// 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: [
.library(name: "Authentication", targets: ["Authentication"]),
.library(name: "S3Store", targets: ["S3Store"]),
],
dependencies: [
.package(url: "https://github.com/JohnSundell/Ink.git", from: "0.5.1"),
.package(url: "https://github.com/daveverwer/Plot.git", branch: "sitemapindex"),
.package(url: "https://github.com/MrLotU/SwiftPrometheus.git", from: "1.0.0-alpha"),
.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/apple/swift-package-manager.git", revision: "swift-5.9-RELEASE"),
.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-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/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", from: "4.13.0"),
.package(url: "https://github.com/vapor/vapor.git", from: "4.92.1"),
],
targets: [
.executableTarget(name: "Run", dependencies: ["App"]),
.target(name: "App",
dependencies: [
"Authentication",
"Ink",
"Plot",
"S3Store",
"SPIManifest",
"SemanticVersion",
"SwiftPrometheus",
"SwiftSoup",
.product(name: "CanonicalPackageURL", package: "CanonicalPackageURL"),
.product(name: "CustomDump", package: "swift-custom-dump"),
.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"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency")
],
linkerSettings: [.unsafeFlags(["-Xlinker", "-interposable"],
.when(platforms: [.macOS],
configuration: .debug))]),
.target(name: "S3Store",
dependencies: [
.product(name: "SotoS3", package: "soto"),
],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency")
]),
.target(name: "Authentication", dependencies: [
.product(name: "JWTKit", package: "jwt-kit") ],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency")
]),
.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: [
.enableUpcomingFeature("StrictConcurrency")
]
),
.testTarget(name: "AuthenticationTests",
dependencies: [.target(name: "Authentication")],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency")
]),
.testTarget(name: "S3StoreTests",
dependencies: [.target(name: "S3Store")],
swiftSettings: [
.enableUpcomingFeature("StrictConcurrency")
])
],
swiftLanguageVersions: [.v5]
)