forked from m-barthelemy/vapor-queues-fluent-driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
63 lines (61 loc) · 2.7 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
// swift-tools-version:5.9
import PackageDescription
import class Foundation.ProcessInfo
let package = Package(
name: "QueuesFluentDriver",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.watchOS(.v6),
.tvOS(.v13),
],
products: [
.library(name: "QueuesFluentDriver", targets: ["QueuesFluentDriver"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.100.0"),
.package(url: "https://github.com/vapor/fluent.git", from: "4.10.0"),
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.48.4"),
.package(url: "https://github.com/vapor/sql-kit.git", from: "3.30.0"),
.package(url: "https://github.com/vapor/queues.git", from: "1.15.0"),
.package(url: "https://github.com/vapor/console-kit.git", from: "4.14.3"),
] + (ProcessInfo.processInfo.environment["CI"] != nil ? [
.package(url: "https://github.com/vapor/fluent-sqlite-driver.git", from: "4.7.1"),
.package(url: "https://github.com/vapor/fluent-postgres-driver.git", from: "2.9.1"),
.package(url: "https://github.com/vapor/fluent-mysql-driver.git", from: "4.5.0"),
] : []),
targets: [
.target(
name: "QueuesFluentDriver",
dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "Fluent", package: "fluent"),
.product(name: "FluentKit", package: "fluent-kit"),
.product(name: "FluentSQL", package: "fluent-kit"),
.product(name: "SQLKit", package: "sql-kit"),
.product(name: "Queues", package: "queues")
],
swiftSettings: swiftSettings
),
.testTarget(
name: "QueuesFluentDriverTests",
dependencies: [
.product(name: "XCTVapor", package: "vapor"),
.product(name: "ConsoleKitTerminal", package: "console-kit"),
.target(name: "QueuesFluentDriver"),
] + (ProcessInfo.processInfo.environment["CI"] != nil ? [
.product(name: "FluentSQLiteDriver", package: "fluent-sqlite-driver"),
.product(name: "FluentPostgresDriver", package: "fluent-postgres-driver"),
.product(name: "FluentMySQLDriver", package: "fluent-mysql-driver"),
] : []),
swiftSettings: swiftSettings
),
]
)
var swiftSettings: [SwiftSetting] { [
.enableUpcomingFeature("ForwardTrailingClosures"),
.enableUpcomingFeature("ExistentialAny"),
.enableUpcomingFeature("ConciseMagicFile"),
.enableUpcomingFeature("DisableOutwardActorInference"),
.enableExperimentalFeature("StrictConcurrency=complete"),
] }