Update to Vapor 4

This commit is contained in:
Matthias Neeracher 2020-05-11 01:49:12 +02:00
parent eaca6dde6a
commit 86373428b9
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
// swift-tools-version:4.0 // swift-tools-version:5.2
import PackageDescription import PackageDescription
let package = Package( let package = Package(
@ -8,12 +8,15 @@ let package = Package(
], ],
dependencies: [ dependencies: [
// 💧 A server-side Swift web framework. // 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"), .package(url: "https://github.com/vapor/vapor.git", from: "4.3.0"),
// 🤐 Unzip archives // 🤐 Unzip archives
.package(url: "https://github.com/microtherion/ZIPFoundation.git", from: "0.9.9-µ5") .package(url: "https://github.com/microtherion/ZIPFoundation.git", from: "0.9.9-µ5")
], ],
targets: [ targets: [
.target(name: "GzipMiddleware", dependencies: ["Vapor", "ZIPFoundation"]), .target(name: "GzipMiddleware", dependencies: [
.product(name: "Vapor", package: "vapor"),
.product(name: "ZIPFoundation", package: "ZIPFoundation"),
])
] ]
) )